{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import requests\n",
    "key_fang =\"1528372f54775d84f2f86b217f948bf3\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 地理/逆地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '1', 'geocodes': [{'formatted_address': '广东省广州市从化区中山大学南方学院', 'country': '中国', 'province': '广东省', 'citycode': '020', 'city': '广州市', 'district': '从化区', 'township': [], 'neighborhood': {'name': [], 'type': []}, 'building': {'name': [], 'type': []}, 'adcode': '440117', 'street': [], 'number': [], 'location': '113.679287,23.632575', 'level': '兴趣点'}]}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>formatted_address</th>\n",
       "      <th>country</th>\n",
       "      <th>province</th>\n",
       "      <th>citycode</th>\n",
       "      <th>city</th>\n",
       "      <th>district</th>\n",
       "      <th>township</th>\n",
       "      <th>adcode</th>\n",
       "      <th>street</th>\n",
       "      <th>number</th>\n",
       "      <th>location</th>\n",
       "      <th>level</th>\n",
       "      <th>neighborhood.name</th>\n",
       "      <th>neighborhood.type</th>\n",
       "      <th>building.name</th>\n",
       "      <th>building.type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>广东省广州市从化区中山大学南方学院</td>\n",
       "      <td>中国</td>\n",
       "      <td>广东省</td>\n",
       "      <td>020</td>\n",
       "      <td>广州市</td>\n",
       "      <td>从化区</td>\n",
       "      <td>[]</td>\n",
       "      <td>440117</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.679287,23.632575</td>\n",
       "      <td>兴趣点</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   formatted_address country province citycode city district township  adcode  \\\n",
       "0  广东省广州市从化区中山大学南方学院      中国      广东省      020  广州市      从化区       []  440117   \n",
       "\n",
       "  street number              location level neighborhood.name  \\\n",
       "0     []     []  113.679287,23.632575   兴趣点                []   \n",
       "\n",
       "  neighborhood.type building.name building.type  \n",
       "0                []            []            []  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "中大南方地理编码: 113.679287,23.632575\n"
     ]
    }
   ],
   "source": [
    "# 地理编码\n",
    "def geocode(address,city=None,batch=None,sig=None)->dict:\n",
    "    \"\"\"获取地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params={\n",
    "        'key': key_fang,\n",
    "        'address':address,\n",
    "        'city':city,\n",
    "        'batch':batch,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "中大南方 = geocode(address='广东省广州市从化区中山大学南方学院')\n",
    "print(中大南方)\n",
    "df_中大南方地理编码 = pd.json_normalize(中大南方['geocodes'])\n",
    "display(df_中大南方地理编码)\n",
    "中大南方地理编码 = 中大南方['geocodes'][0]['location']\n",
    "print(\"中大南方地理编码:\",中大南方地理编码)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'addressComponent': {'city': '广州市', 'province': '广东省', 'adcode': '440117', 'district': '从化区', 'towncode': '440117103000', 'streetNumber': {'number': '7号', 'location': '113.6786,23.6333289', 'direction': '西北', 'distance': '109.203', 'street': '博学路'}, 'country': '中国', 'township': '温泉镇', 'businessAreas': [[]], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '020'}, 'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院'}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>status</th>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>info</th>\n",
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>infocode</th>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <td>广州市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <td>广东省</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <td>440117</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <td>从化区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.towncode</th>\n",
       "      <td>440117103000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.number</th>\n",
       "      <td>7号</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.location</th>\n",
       "      <td>113.6786,23.6333289</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.direction</th>\n",
       "      <td>西北</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.distance</th>\n",
       "      <td>109.203</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.street</th>\n",
       "      <td>博学路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <td>中国</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <td>温泉镇</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <td>[[]]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <td>020</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <td>广东省广州市从化区温泉镇中山大学南方学院</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                      0\n",
       "status                                                                1\n",
       "info                                                                 OK\n",
       "infocode                                                          10000\n",
       "regeocode.addressComponent.city                                     广州市\n",
       "regeocode.addressComponent.province                                 广东省\n",
       "regeocode.addressComponent.adcode                                440117\n",
       "regeocode.addressComponent.district                                 从化区\n",
       "regeocode.addressComponent.towncode                        440117103000\n",
       "regeocode.addressComponent.streetNumber.number                       7号\n",
       "regeocode.addressComponent.streetNumber.location    113.6786,23.6333289\n",
       "regeocode.addressComponent.streetNumber.direction                    西北\n",
       "regeocode.addressComponent.streetNumber.distance                109.203\n",
       "regeocode.addressComponent.streetNumber.street                      博学路\n",
       "regeocode.addressComponent.country                                   中国\n",
       "regeocode.addressComponent.township                                 温泉镇\n",
       "regeocode.addressComponent.businessAreas                           [[]]\n",
       "regeocode.addressComponent.building.name                             []\n",
       "regeocode.addressComponent.building.type                             []\n",
       "regeocode.addressComponent.neighborhood.name                         []\n",
       "regeocode.addressComponent.neighborhood.type                         []\n",
       "regeocode.addressComponent.citycode                                 020\n",
       "regeocode.formatted_address                        广东省广州市从化区温泉镇中山大学南方学院"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 逆地理编码_base\n",
    "def regeocode(location,poitype=None,radius=None,extensions=\"base\",batch=False,roadlevel=None,sig=None,homeorcorp=None)->dict:\n",
    "    \"\"\"获取逆地理编码\"\"\"\n",
    "    url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    params={\n",
    "        'key': key_fang,\n",
    "        'location':location,\n",
    "        'poitype':poitype,\n",
    "        'radius':radius,\n",
    "        'extensions':extensions,\n",
    "        'batch':batch,\n",
    "        'roadlevel':roadlevel,\n",
    "        'homeorcorp':homeorcorp,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "中大南方逆地理编码_base = regeocode(中大南方地理编码,extensions=\"base\")\n",
    "print(中大南方逆地理编码_base)\n",
    "df_中大南方逆地理编码_base = pd.json_normalize(中大南方逆地理编码_base).T\n",
    "display(df_中大南方逆地理编码_base)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'roads': [{'id': '020F49F0050461203', 'location': '113.68,23.634', 'direction': '南', 'name': '博学路', 'distance': '156.951'}, {'id': '020F49F0050462451', 'location': '113.677,23.6347', 'direction': '东南', 'name': '中山路', 'distance': '343.951'}, {'id': '020F49F006047765', 'location': '113.682,23.6394', 'direction': '南', 'name': 'S29从莞深高速', 'distance': '807.947'}], 'roadinters': [{'second_name': '中山路', 'first_id': '020F49F0050461203', 'second_id': '020F49F0050462451', 'location': '113.6767944,23.63466139', 'distance': '343.951', 'first_name': '博学路', 'direction': '东南'}], 'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院', 'addressComponent': {'city': '广州市', 'province': '广东省', 'adcode': '440117', 'district': '从化区', 'towncode': '440117103000', 'streetNumber': {'number': '7号', 'location': '113.6786,23.6333289', 'direction': '西北', 'distance': '109.203', 'street': '博学路'}, 'country': '中国', 'township': '温泉镇', 'businessAreas': [[]], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '020'}, 'aois': [{'area': '536585.849985', 'type': '141201', 'id': 'B00140MR9A', 'location': '113.679262,23.632583', 'adcode': '440117', 'name': '中山大学南方学院', 'distance': '0'}], 'pois': [{'id': 'B00140MR9A', 'direction': '西', 'businessarea': [], 'address': '温泉大道882号', 'poiweight': '0.450402', 'name': '中山大学南方学院', 'location': '113.679262,23.632583', 'distance': '2.69979', 'tel': '020-61787326;020-61787333', 'type': '科教文化服务;学校;高等院校'}, {'id': 'B0FFF2VMJ4', 'direction': '东南', 'businessarea': [], 'address': '温泉大道886号中山大学南方学院内', 'poiweight': '0.148531', 'name': '中山大学南方学院-综合楼', 'location': '113.680117,23.631544', 'distance': '142.466', 'tel': [], 'type': '科教文化服务;学校;学校'}, {'id': 'B0FFFTC9PH', 'direction': '东北', 'businessarea': [], 'address': '博学路附近', 'poiweight': '0.193172', 'name': '中山大学南方学院教学楼10号', 'location': '113.680125,23.633492', 'distance': '132.988', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B00141TQKX', 'direction': '西北', 'businessarea': [], 'address': '温泉大道882', 'poiweight': '0.148531', 'name': '中山大学南方学院教学楼6号', 'location': '113.678424,23.633710', 'distance': '153.818', 'tel': [], 'type': '科教文化服务;学校;学校'}, {'id': 'B00141WQCO', 'direction': '东北', 'businessarea': [], 'address': '博学路附近', 'poiweight': '0.14954', 'name': '中山大学南方学院教学楼8号', 'location': '113.680399,23.634329', 'distance': '225.543', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B00141TRVH', 'direction': '西南', 'businessarea': [], 'address': '博学路21', 'poiweight': '0.148531', 'name': '中山大学南方学院教学楼2号', 'location': '113.677060,23.631346', 'distance': '264.846', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B0FFKP9ET5', 'direction': '西南', 'businessarea': [], 'address': '博学路附近', 'poiweight': '0.191742', 'name': '中山大学南方学院1号实验楼', 'location': '113.678215,23.631370', 'distance': '172.86', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B00140TWHT', 'direction': '南', 'businessarea': [], 'address': '笃行路2', 'poiweight': '0.157653', 'name': '教工住宅1号', 'location': '113.678490,23.630432', 'distance': '251.758', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B0FFHC4XU0', 'direction': '南', 'businessarea': [], 'address': '温泉大道886号', 'poiweight': '0.158426', 'name': '中山大学南方学院学术交流中心', 'location': '113.679959,23.630496', 'distance': '241.095', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B0FFLBEOND', 'direction': '东南', 'businessarea': [], 'address': [], 'poiweight': '0.190963', 'name': '聚贤楼10号', 'location': '113.681253,23.631036', 'distance': '263.444', 'tel': [], 'type': '商务住宅;住宅区;宿舍'}, {'id': 'B0FFHJFHVN', 'direction': '北', 'businessarea': [], 'address': '温泉镇温泉大道', 'poiweight': '0.210336', 'name': '中山大学南方学院第五食堂', 'location': '113.679234,23.634647', 'distance': '230.464', 'tel': [], 'type': '餐饮服务;中餐厅;中餐厅'}, {'id': 'B0FFJLW0O9', 'direction': '西', 'businessarea': [], 'address': '博学路4附近', 'poiweight': '0.191645', 'name': '中山大学南方学院西区饭堂', 'location': '113.676210,23.632177', 'distance': '316.572', 'tel': [], 'type': '科教文化服务;科教文化场所;科教文化场所'}, {'id': 'B0FFJBZLYT', 'direction': '西北', 'businessarea': [], 'address': '中山路与博学路交叉口东南50米', 'poiweight': '0.297382', 'name': '铜像广场', 'location': '113.676921,23.634555', 'distance': '326.444', 'tel': [], 'type': '风景名胜;风景名胜;风景名胜'}, {'id': 'B0FFG8CSEK', 'direction': '东', 'businessarea': [], 'address': '温泉镇', 'poiweight': '0.185371', 'name': 'L5员工宿舍', 'location': '113.682583,23.631487', 'distance': '356.923', 'tel': [], 'type': '商务住宅;住宅区;宿舍'}, {'id': 'B0FFKPXO2S', 'direction': '北', 'businessarea': [], 'address': '博学路附近', 'poiweight': '0.188247', 'name': '中山大学南方学院医务室', 'location': '113.679394,23.635924', 'distance': '372.556', 'tel': [], 'type': '医疗保健服务;医疗保健服务场所;医疗保健服务场所'}, {'id': 'B0FFHHLMF8', 'direction': '东北', 'businessarea': [], 'address': '中山大学南方学院明辩路2号第三饭堂', 'poiweight': '0.178935', 'name': '茗语轩餐厅', 'location': '113.681901,23.634495', 'distance': '341.332', 'tel': '13929501395', 'type': '餐饮服务;中餐厅;中餐厅'}, {'id': 'B0FFGXGN3K', 'direction': '东', 'businessarea': [], 'address': [], 'poiweight': '0.188657', 'name': '中山大学南方学院宿舍H25', 'location': '113.683474,23.632020', 'distance': '430.984', 'tel': [], 'type': '商务住宅;住宅区;宿舍'}, {'id': 'B0FFGQ2UG9', 'direction': '东', 'businessarea': [], 'address': '温泉镇', 'poiweight': '0.189884', 'name': 'H23学生宿舍楼', 'location': '113.684021,23.633311', 'distance': '489.185', 'tel': [], 'type': '商务住宅;住宅区;宿舍'}, {'id': 'B0FFGBBC19', 'direction': '东', 'businessarea': [], 'address': '温泉镇', 'poiweight': '0.2587', 'name': '保利桃花源', 'location': '113.685212,23.633333', 'distance': '609.461', 'tel': '020-37918888', 'type': '商务住宅;住宅区;别墅'}, {'id': 'B00140U844', 'direction': '西南', 'businessarea': [], 'address': '博学路24', 'poiweight': '0.203285', 'name': '学生宿舍H-5', 'location': '113.677267,23.629149', 'distance': '433.01', 'tel': [], 'type': '地名地址信息;门牌信息;楼栋号'}, {'id': 'B0FFKQ210C', 'direction': '北', 'businessarea': [], 'address': [], 'poiweight': '0.218258', 'name': '中山大学南方学院聚贤楼7号', 'location': '113.680958,23.636938', 'distance': '514.173', 'tel': [], 'type': '商务住宅;商务住宅相关;商务住宅相关'}, {'id': 'B0FFHVQGBY', 'direction': '南', 'businessarea': [], 'address': [], 'poiweight': '0.170485', 'name': '广州市从化温泉塔洛灯商店', 'location': '113.680212,23.627906', 'distance': '527.663', 'tel': [], 'type': '购物服务;家居建材市场;家居建材市场'}, {'id': 'B0FFLJV95W', 'direction': '东北', 'businessarea': [], 'address': [], 'poiweight': '0.28899', 'name': '中山大学南方学院12BLOCK', 'location': '113.682608,23.636598', 'distance': '560.894', 'tel': [], 'type': '科教文化服务;学校;高等院校'}, {'id': 'B0FFGF9WTH', 'direction': '东北', 'businessarea': [], 'address': '从化区', 'poiweight': '0.196592', 'name': '田螺山隧道', 'location': '113.683736,23.638949', 'distance': '841.305', 'tel': [], 'type': '地名地址信息;交通地名;隧道'}]}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>regeocode.roads</th>\n",
       "      <th>regeocode.roadinters</th>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <th>...</th>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <th>regeocode.aois</th>\n",
       "      <th>regeocode.pois</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>[{'id': '020F49F0050461203', 'location': '113....</td>\n",
       "      <td>[{'second_name': '中山路', 'first_id': '020F49F00...</td>\n",
       "      <td>广东省广州市从化区温泉镇中山大学南方学院</td>\n",
       "      <td>广州市</td>\n",
       "      <td>广东省</td>\n",
       "      <td>440117</td>\n",
       "      <td>从化区</td>\n",
       "      <td>...</td>\n",
       "      <td>中国</td>\n",
       "      <td>温泉镇</td>\n",
       "      <td>[[]]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>020</td>\n",
       "      <td>[{'area': '536585.849985', 'type': '141201', '...</td>\n",
       "      <td>[{'id': 'B00140MR9A', 'direction': '西', 'busin...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 26 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode                                    regeocode.roads  \\\n",
       "0      1   OK    10000  [{'id': '020F49F0050461203', 'location': '113....   \n",
       "\n",
       "                                regeocode.roadinters  \\\n",
       "0  [{'second_name': '中山路', 'first_id': '020F49F00...   \n",
       "\n",
       "  regeocode.formatted_address regeocode.addressComponent.city  \\\n",
       "0        广东省广州市从化区温泉镇中山大学南方学院                             广州市   \n",
       "\n",
       "  regeocode.addressComponent.province regeocode.addressComponent.adcode  \\\n",
       "0                                 广东省                            440117   \n",
       "\n",
       "  regeocode.addressComponent.district  ... regeocode.addressComponent.country  \\\n",
       "0                                 从化区  ...                                 中国   \n",
       "\n",
       "  regeocode.addressComponent.township  \\\n",
       "0                                 温泉镇   \n",
       "\n",
       "  regeocode.addressComponent.businessAreas  \\\n",
       "0                                     [[]]   \n",
       "\n",
       "  regeocode.addressComponent.building.name  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.building.type  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.name  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.type  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.citycode  \\\n",
       "0                                 020   \n",
       "\n",
       "                                      regeocode.aois  \\\n",
       "0  [{'area': '536585.849985', 'type': '141201', '...   \n",
       "\n",
       "                                      regeocode.pois  \n",
       "0  [{'id': 'B00140MR9A', 'direction': '西', 'busin...  \n",
       "\n",
       "[1 rows x 26 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 逆地理编码_all\n",
    "中大南方逆地理编码_all = regeocode(中大南方地理编码,extensions=\"all\")\n",
    "print(中大南方逆地理编码_all)\n",
    "df_中大南方逆地理编码_all = pd.json_normalize(中大南方逆地理编码_all)\n",
    "display(df_中大南方逆地理编码_all)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>020F49F0050461203</td>\n",
       "      <td>113.68,23.634</td>\n",
       "      <td>南</td>\n",
       "      <td>博学路</td>\n",
       "      <td>156.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>020F49F0050462451</td>\n",
       "      <td>113.677,23.6347</td>\n",
       "      <td>东南</td>\n",
       "      <td>中山路</td>\n",
       "      <td>343.951</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>020F49F006047765</td>\n",
       "      <td>113.682,23.6394</td>\n",
       "      <td>南</td>\n",
       "      <td>S29从莞深高速</td>\n",
       "      <td>807.947</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                  id         location direction      name distance\n",
       "0  020F49F0050461203    113.68,23.634         南       博学路  156.951\n",
       "1  020F49F0050462451  113.677,23.6347        东南       中山路  343.951\n",
       "2   020F49F006047765  113.682,23.6394         南  S29从莞深高速  807.947"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>second_name</th>\n",
       "      <th>first_id</th>\n",
       "      <th>second_id</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>first_name</th>\n",
       "      <th>direction</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>中山路</td>\n",
       "      <td>020F49F0050461203</td>\n",
       "      <td>020F49F0050462451</td>\n",
       "      <td>113.6767944,23.63466139</td>\n",
       "      <td>343.951</td>\n",
       "      <td>博学路</td>\n",
       "      <td>东南</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  second_name           first_id          second_id                 location  \\\n",
       "0         中山路  020F49F0050461203  020F49F0050462451  113.6767944,23.63466139   \n",
       "\n",
       "  distance first_name direction  \n",
       "0  343.951        博学路        东南  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>area</th>\n",
       "      <th>type</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>536585.849985</td>\n",
       "      <td>141201</td>\n",
       "      <td>B00140MR9A</td>\n",
       "      <td>113.679262,23.632583</td>\n",
       "      <td>440117</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            area    type          id              location  adcode      name  \\\n",
       "0  536585.849985  141201  B00140MR9A  113.679262,23.632583  440117  中山大学南方学院   \n",
       "\n",
       "  distance  \n",
       "0        0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>direction</th>\n",
       "      <th>businessarea</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>name</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>tel</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B00140MR9A</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号</td>\n",
       "      <td>0.450402</td>\n",
       "      <td>中山大学南方学院</td>\n",
       "      <td>113.679262,23.632583</td>\n",
       "      <td>2.69979</td>\n",
       "      <td>020-61787326;020-61787333</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFF2VMJ4</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道886号中山大学南方学院内</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院-综合楼</td>\n",
       "      <td>113.680117,23.631544</td>\n",
       "      <td>142.466</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;学校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFFTC9PH</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.193172</td>\n",
       "      <td>中山大学南方学院教学楼10号</td>\n",
       "      <td>113.680125,23.633492</td>\n",
       "      <td>132.988</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B00141TQKX</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼6号</td>\n",
       "      <td>113.678424,23.633710</td>\n",
       "      <td>153.818</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;学校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B00141WQCO</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.14954</td>\n",
       "      <td>中山大学南方学院教学楼8号</td>\n",
       "      <td>113.680399,23.634329</td>\n",
       "      <td>225.543</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B00141TRVH</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路21</td>\n",
       "      <td>0.148531</td>\n",
       "      <td>中山大学南方学院教学楼2号</td>\n",
       "      <td>113.677060,23.631346</td>\n",
       "      <td>264.846</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFKP9ET5</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.191742</td>\n",
       "      <td>中山大学南方学院1号实验楼</td>\n",
       "      <td>113.678215,23.631370</td>\n",
       "      <td>172.86</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B00140TWHT</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>笃行路2</td>\n",
       "      <td>0.157653</td>\n",
       "      <td>教工住宅1号</td>\n",
       "      <td>113.678490,23.630432</td>\n",
       "      <td>251.758</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFHC4XU0</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道886号</td>\n",
       "      <td>0.158426</td>\n",
       "      <td>中山大学南方学院学术交流中心</td>\n",
       "      <td>113.679959,23.630496</td>\n",
       "      <td>241.095</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFLBEOND</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.190963</td>\n",
       "      <td>聚贤楼10号</td>\n",
       "      <td>113.681253,23.631036</td>\n",
       "      <td>263.444</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFHJFHVN</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇温泉大道</td>\n",
       "      <td>0.210336</td>\n",
       "      <td>中山大学南方学院第五食堂</td>\n",
       "      <td>113.679234,23.634647</td>\n",
       "      <td>230.464</td>\n",
       "      <td>[]</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFJLW0O9</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路4附近</td>\n",
       "      <td>0.191645</td>\n",
       "      <td>中山大学南方学院西区饭堂</td>\n",
       "      <td>113.676210,23.632177</td>\n",
       "      <td>316.572</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;科教文化场所;科教文化场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFJBZLYT</td>\n",
       "      <td>西北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山路与博学路交叉口东南50米</td>\n",
       "      <td>0.297382</td>\n",
       "      <td>铜像广场</td>\n",
       "      <td>113.676921,23.634555</td>\n",
       "      <td>326.444</td>\n",
       "      <td>[]</td>\n",
       "      <td>风景名胜;风景名胜;风景名胜</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFG8CSEK</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇</td>\n",
       "      <td>0.185371</td>\n",
       "      <td>L5员工宿舍</td>\n",
       "      <td>113.682583,23.631487</td>\n",
       "      <td>356.923</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFKPXO2S</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路附近</td>\n",
       "      <td>0.188247</td>\n",
       "      <td>中山大学南方学院医务室</td>\n",
       "      <td>113.679394,23.635924</td>\n",
       "      <td>372.556</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;医疗保健服务场所;医疗保健服务场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFHHLMF8</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山大学南方学院明辩路2号第三饭堂</td>\n",
       "      <td>0.178935</td>\n",
       "      <td>茗语轩餐厅</td>\n",
       "      <td>113.681901,23.634495</td>\n",
       "      <td>341.332</td>\n",
       "      <td>13929501395</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFGXGN3K</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.188657</td>\n",
       "      <td>中山大学南方学院宿舍H25</td>\n",
       "      <td>113.683474,23.632020</td>\n",
       "      <td>430.984</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFGQ2UG9</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇</td>\n",
       "      <td>0.189884</td>\n",
       "      <td>H23学生宿舍楼</td>\n",
       "      <td>113.684021,23.633311</td>\n",
       "      <td>489.185</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFGBBC19</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇</td>\n",
       "      <td>0.2587</td>\n",
       "      <td>保利桃花源</td>\n",
       "      <td>113.685212,23.633333</td>\n",
       "      <td>609.461</td>\n",
       "      <td>020-37918888</td>\n",
       "      <td>商务住宅;住宅区;别墅</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B00140U844</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>博学路24</td>\n",
       "      <td>0.203285</td>\n",
       "      <td>学生宿舍H-5</td>\n",
       "      <td>113.677267,23.629149</td>\n",
       "      <td>433.01</td>\n",
       "      <td>[]</td>\n",
       "      <td>地名地址信息;门牌信息;楼栋号</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>B0FFKQ210C</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.218258</td>\n",
       "      <td>中山大学南方学院聚贤楼7号</td>\n",
       "      <td>113.680958,23.636938</td>\n",
       "      <td>514.173</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;商务住宅相关;商务住宅相关</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>B0FFHVQGBY</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.170485</td>\n",
       "      <td>广州市从化温泉塔洛灯商店</td>\n",
       "      <td>113.680212,23.627906</td>\n",
       "      <td>527.663</td>\n",
       "      <td>[]</td>\n",
       "      <td>购物服务;家居建材市场;家居建材市场</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>B0FFLJV95W</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0.28899</td>\n",
       "      <td>中山大学南方学院12BLOCK</td>\n",
       "      <td>113.682608,23.636598</td>\n",
       "      <td>560.894</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>B0FFGF9WTH</td>\n",
       "      <td>东北</td>\n",
       "      <td>[]</td>\n",
       "      <td>从化区</td>\n",
       "      <td>0.196592</td>\n",
       "      <td>田螺山隧道</td>\n",
       "      <td>113.683736,23.638949</td>\n",
       "      <td>841.305</td>\n",
       "      <td>[]</td>\n",
       "      <td>地名地址信息;交通地名;隧道</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id direction businessarea            address poiweight  \\\n",
       "0   B00140MR9A         西           []           温泉大道882号  0.450402   \n",
       "1   B0FFF2VMJ4        东南           []  温泉大道886号中山大学南方学院内  0.148531   \n",
       "2   B0FFFTC9PH        东北           []              博学路附近  0.193172   \n",
       "3   B00141TQKX        西北           []            温泉大道882  0.148531   \n",
       "4   B00141WQCO        东北           []              博学路附近   0.14954   \n",
       "5   B00141TRVH        西南           []              博学路21  0.148531   \n",
       "6   B0FFKP9ET5        西南           []              博学路附近  0.191742   \n",
       "7   B00140TWHT         南           []               笃行路2  0.157653   \n",
       "8   B0FFHC4XU0         南           []           温泉大道886号  0.158426   \n",
       "9   B0FFLBEOND        东南           []                 []  0.190963   \n",
       "10  B0FFHJFHVN         北           []            温泉镇温泉大道  0.210336   \n",
       "11  B0FFJLW0O9         西           []             博学路4附近  0.191645   \n",
       "12  B0FFJBZLYT        西北           []    中山路与博学路交叉口东南50米  0.297382   \n",
       "13  B0FFG8CSEK         东           []                温泉镇  0.185371   \n",
       "14  B0FFKPXO2S         北           []              博学路附近  0.188247   \n",
       "15  B0FFHHLMF8        东北           []  中山大学南方学院明辩路2号第三饭堂  0.178935   \n",
       "16  B0FFGXGN3K         东           []                 []  0.188657   \n",
       "17  B0FFGQ2UG9         东           []                温泉镇  0.189884   \n",
       "18  B0FFGBBC19         东           []                温泉镇    0.2587   \n",
       "19  B00140U844        西南           []              博学路24  0.203285   \n",
       "20  B0FFKQ210C         北           []                 []  0.218258   \n",
       "21  B0FFHVQGBY         南           []                 []  0.170485   \n",
       "22  B0FFLJV95W        东北           []                 []   0.28899   \n",
       "23  B0FFGF9WTH        东北           []                从化区  0.196592   \n",
       "\n",
       "               name              location distance                        tel  \\\n",
       "0          中山大学南方学院  113.679262,23.632583  2.69979  020-61787326;020-61787333   \n",
       "1      中山大学南方学院-综合楼  113.680117,23.631544  142.466                         []   \n",
       "2    中山大学南方学院教学楼10号  113.680125,23.633492  132.988                         []   \n",
       "3     中山大学南方学院教学楼6号  113.678424,23.633710  153.818                         []   \n",
       "4     中山大学南方学院教学楼8号  113.680399,23.634329  225.543                         []   \n",
       "5     中山大学南方学院教学楼2号  113.677060,23.631346  264.846                         []   \n",
       "6     中山大学南方学院1号实验楼  113.678215,23.631370   172.86                         []   \n",
       "7            教工住宅1号  113.678490,23.630432  251.758                         []   \n",
       "8    中山大学南方学院学术交流中心  113.679959,23.630496  241.095                         []   \n",
       "9            聚贤楼10号  113.681253,23.631036  263.444                         []   \n",
       "10     中山大学南方学院第五食堂  113.679234,23.634647  230.464                         []   \n",
       "11     中山大学南方学院西区饭堂  113.676210,23.632177  316.572                         []   \n",
       "12             铜像广场  113.676921,23.634555  326.444                         []   \n",
       "13           L5员工宿舍  113.682583,23.631487  356.923                         []   \n",
       "14      中山大学南方学院医务室  113.679394,23.635924  372.556                         []   \n",
       "15            茗语轩餐厅  113.681901,23.634495  341.332                13929501395   \n",
       "16    中山大学南方学院宿舍H25  113.683474,23.632020  430.984                         []   \n",
       "17         H23学生宿舍楼  113.684021,23.633311  489.185                         []   \n",
       "18            保利桃花源  113.685212,23.633333  609.461               020-37918888   \n",
       "19          学生宿舍H-5  113.677267,23.629149   433.01                         []   \n",
       "20    中山大学南方学院聚贤楼7号  113.680958,23.636938  514.173                         []   \n",
       "21     广州市从化温泉塔洛灯商店  113.680212,23.627906  527.663                         []   \n",
       "22  中山大学南方学院12BLOCK  113.682608,23.636598  560.894                         []   \n",
       "23            田螺山隧道  113.683736,23.638949  841.305                         []   \n",
       "\n",
       "                        type  \n",
       "0             科教文化服务;学校;高等院校  \n",
       "1               科教文化服务;学校;学校  \n",
       "2       科教文化服务;科教文化场所;科教文化场所  \n",
       "3               科教文化服务;学校;学校  \n",
       "4       科教文化服务;科教文化场所;科教文化场所  \n",
       "5       科教文化服务;科教文化场所;科教文化场所  \n",
       "6       科教文化服务;科教文化场所;科教文化场所  \n",
       "7              商务住宅;住宅区;住宅小区  \n",
       "8       科教文化服务;科教文化场所;科教文化场所  \n",
       "9                商务住宅;住宅区;宿舍  \n",
       "10              餐饮服务;中餐厅;中餐厅  \n",
       "11      科教文化服务;科教文化场所;科教文化场所  \n",
       "12            风景名胜;风景名胜;风景名胜  \n",
       "13               商务住宅;住宅区;宿舍  \n",
       "14  医疗保健服务;医疗保健服务场所;医疗保健服务场所  \n",
       "15              餐饮服务;中餐厅;中餐厅  \n",
       "16               商务住宅;住宅区;宿舍  \n",
       "17               商务住宅;住宅区;宿舍  \n",
       "18               商务住宅;住宅区;别墅  \n",
       "19           地名地址信息;门牌信息;楼栋号  \n",
       "20        商务住宅;商务住宅相关;商务住宅相关  \n",
       "21        购物服务;家居建材市场;家居建材市场  \n",
       "22            科教文化服务;学校;高等院校  \n",
       "23            地名地址信息;交通地名;隧道  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 细节分析\n",
    "roads = pd.json_normalize(中大南方逆地理编码_all['regeocode']['roads'])\n",
    "roadinters = pd.json_normalize(中大南方逆地理编码_all['regeocode']['roadinters'])\n",
    "aois = pd.json_normalize(中大南方逆地理编码_all['regeocode']['aois'])\n",
    "pois = pd.json_normalize(中大南方逆地理编码_all['regeocode']['pois'])\n",
    "display(roads,roadinters,aois,pois)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 路径规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 准备base url、params、response.json（） \n",
    "def walking(origin,destination,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)中大南方_location: 113.679287,23.632575 (终点)龙岗社区居委会_location: 113.669129,23.600956\n"
     ]
    }
   ],
   "source": [
    "# 准备walking 参数\n",
    "龙岗社区居委会 = geocode('广东省广州市从化区龙岗社区居委会')\n",
    "龙岗社区居委会_location = 龙岗社区居委会['geocodes'][0]['location']\n",
    "中大南方_location = 中大南方['geocodes'][0]['location']\n",
    "print(\"(起点)中大南方_location:\",中大南方_location,\"(终点)龙岗社区居委会_location:\",龙岗社区居委会_location)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>向南步行161米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>161</td>\n",
       "      <td>129</td>\n",
       "      <td>113.679592,23.632088;113.679609,23.631003;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>向西步行99米左转</td>\n",
       "      <td>西</td>\n",
       "      <td>[]</td>\n",
       "      <td>99</td>\n",
       "      <td>79</td>\n",
       "      <td>113.67964,23.630634;113.679362,23.630521;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>向南步行237米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>237</td>\n",
       "      <td>190</td>\n",
       "      <td>113.678711,23.63036;113.678711,23.62934;113.67...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>向南步行498米向右前方行走</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>498</td>\n",
       "      <td>398</td>\n",
       "      <td>113.678273,23.628368;113.678572,23.628338;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>向西南步行715米左转</td>\n",
       "      <td>西南</td>\n",
       "      <td>[]</td>\n",
       "      <td>715</td>\n",
       "      <td>572</td>\n",
       "      <td>113.678572,23.624653;113.678559,23.62451;113.6...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>向东南步行406米向右前方行走</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>406</td>\n",
       "      <td>325</td>\n",
       "      <td>113.675299,23.620048;113.675642,23.619991;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>沿乌土街向南步行1380米右转</td>\n",
       "      <td>南</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>1380</td>\n",
       "      <td>1104</td>\n",
       "      <td>113.678181,23.617652;113.678095,23.617205;113....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>沿乌土街向西南步行165米直行</td>\n",
       "      <td>西南</td>\n",
       "      <td>乌土街</td>\n",
       "      <td>165</td>\n",
       "      <td>132</td>\n",
       "      <td>113.677535,23.605668;113.676988,23.605373;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>沿934县道向西步行118米直行</td>\n",
       "      <td>西</td>\n",
       "      <td>934县道</td>\n",
       "      <td>118</td>\n",
       "      <td>94</td>\n",
       "      <td>113.676159,23.604883;113.675929,23.604831;113....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>沿桃园东路向西南步行673米向右前方行走</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>673</td>\n",
       "      <td>538</td>\n",
       "      <td>113.675009,23.604735;113.674236,23.604683;113....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>沿桃园东路向西南步行117米到达目的地</td>\n",
       "      <td>西南</td>\n",
       "      <td>桃园东路</td>\n",
       "      <td>117</td>\n",
       "      <td>94</td>\n",
       "      <td>113.669714,23.601897;113.66964,23.601771;113.6...</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             instruction orientation   road distance duration  \\\n",
       "0             向南步行161米右转           南     []      161      129   \n",
       "1              向西步行99米左转           西     []       99       79   \n",
       "2             向南步行237米左转           南     []      237      190   \n",
       "3         向南步行498米向右前方行走           南     []      498      398   \n",
       "4            向西南步行715米左转          西南     []      715      572   \n",
       "5        向东南步行406米向右前方行走          东南     []      406      325   \n",
       "6        沿乌土街向南步行1380米右转           南    乌土街     1380     1104   \n",
       "7        沿乌土街向西南步行165米直行          西南    乌土街      165      132   \n",
       "8       沿934县道向西步行118米直行           西  934县道      118       94   \n",
       "9   沿桃园东路向西南步行673米向右前方行走          西南   桃园东路      673      538   \n",
       "10   沿桃园东路向西南步行117米到达目的地          西南   桃园东路      117       94   \n",
       "\n",
       "                                             polyline  action  \\\n",
       "0   113.679592,23.632088;113.679609,23.631003;113....      右转   \n",
       "1   113.67964,23.630634;113.679362,23.630521;113.6...      左转   \n",
       "2   113.678711,23.63036;113.678711,23.62934;113.67...      左转   \n",
       "3   113.678273,23.628368;113.678572,23.628338;113....  向右前方行走   \n",
       "4   113.678572,23.624653;113.678559,23.62451;113.6...      左转   \n",
       "5   113.675299,23.620048;113.675642,23.619991;113....  向右前方行走   \n",
       "6   113.678181,23.617652;113.678095,23.617205;113....      右转   \n",
       "7   113.677535,23.605668;113.676988,23.605373;113....      直行   \n",
       "8   113.676159,23.604883;113.675929,23.604831;113....      直行   \n",
       "9   113.675009,23.604735;113.674236,23.604683;113....  向右前方行走   \n",
       "10  113.669714,23.601897;113.66964,23.601771;113.6...      []   \n",
       "\n",
       "   assistant_action walk_type  \n",
       "0                []         0  \n",
       "1                []         0  \n",
       "2                []         0  \n",
       "3                []         0  \n",
       "4                []         0  \n",
       "5                []         0  \n",
       "6                []         0  \n",
       "7                []         0  \n",
       "8                []         0  \n",
       "9                []         0  \n",
       "10            到达目的地         0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "0               向南步行161米右转\n",
       "1                向西步行99米左转\n",
       "2               向南步行237米左转\n",
       "3           向南步行498米向右前方行走\n",
       "4              向西南步行715米左转\n",
       "5          向东南步行406米向右前方行走\n",
       "6          沿乌土街向南步行1380米右转\n",
       "7          沿乌土街向西南步行165米直行\n",
       "8         沿934县道向西步行118米直行\n",
       "9     沿桃园东路向西南步行673米向右前方行走\n",
       "10     沿桃园东路向西南步行117米到达目的地\n",
       "Name: instruction, dtype: object"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 路径规划\n",
    "中大南方_龙岗社区居委会 = walking(中大南方_location,龙岗社区居委会_location)\n",
    "df_步行路径规划 = pd.json_normalize(中大南方_龙岗社区居委会[\"route\"][\"paths\"][0]['steps'])\n",
    "display(df_步行路径规划)\n",
    "df_步行路径规划[\"instruction\"]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(起点)中山大学_location: 113.290219,23.128596 (终点)天河城_location: 113.361200,23.124680\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>count</th>\n",
       "      <th>route.origin</th>\n",
       "      <th>route.destination</th>\n",
       "      <th>route.distance</th>\n",
       "      <th>route.taxi_cost</th>\n",
       "      <th>route.transits</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>5</td>\n",
       "      <td>113.290219,23.128596</td>\n",
       "      <td>113.361200,23.124680</td>\n",
       "      <td>7012</td>\n",
       "      <td>21.7312</td>\n",
       "      <td>[{'cost': '4.0', 'duration': '2443', 'nightfla...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode count          route.origin     route.destination  \\\n",
       "0      1   OK    10000     5  113.290219,23.128596  113.361200,23.124680   \n",
       "\n",
       "  route.distance route.taxi_cost  \\\n",
       "0           7012         21.7312   \n",
       "\n",
       "                                      route.transits  \n",
       "0  [{'cost': '4.0', 'duration': '2443', 'nightfla...  "
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def integrated(origin,destination,city,cityd=None,extensions='base',strategy=None,nightflag=0,date=None,time=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/transit/integrated?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'city':city,\n",
    "        'cityd':cityd,\n",
    "        'extensions':extensions,\n",
    "        'strategy':strategy,\n",
    "        'nightflag':nightflag,\n",
    "        'date':date,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "# 准备walking 参数\n",
    "中山大学 = geocode('广东省广州市中山大学南校区')\n",
    "中山大学_location = 中山大学['geocodes'][0]['location']\n",
    "天河城 = geocode('广东省广州市天河城')\n",
    "天河城_location = 天河城['geocodes'][0]['location']\n",
    "print(\"(起点)中山大学_location:\",中山大学_location,\"(终点)天河城_location:\",天河城_location)\n",
    "\n",
    "# 公交路径规划\n",
    "中大_天河城 = integrated(中山大学_location,天河城_location,city='广州',extensions='all')\n",
    "df_bus = pd.json_normalize(中大_天河城)\n",
    "df_bus"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>cost</th>\n",
       "      <th>duration</th>\n",
       "      <th>nightflag</th>\n",
       "      <th>walking_distance</th>\n",
       "      <th>distance</th>\n",
       "      <th>missed</th>\n",
       "      <th>segments</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>4.0</td>\n",
       "      <td>2443</td>\n",
       "      <td>0</td>\n",
       "      <td>1690</td>\n",
       "      <td>10345</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2.0</td>\n",
       "      <td>2873</td>\n",
       "      <td>0</td>\n",
       "      <td>965</td>\n",
       "      <td>8551</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>4.0</td>\n",
       "      <td>2958</td>\n",
       "      <td>0</td>\n",
       "      <td>2429</td>\n",
       "      <td>10089</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2.0</td>\n",
       "      <td>3219</td>\n",
       "      <td>0</td>\n",
       "      <td>1060</td>\n",
       "      <td>7996</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2.0</td>\n",
       "      <td>3387</td>\n",
       "      <td>0</td>\n",
       "      <td>979</td>\n",
       "      <td>8224</td>\n",
       "      <td>0</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.29036...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  cost duration nightflag walking_distance distance missed  \\\n",
       "0  4.0     2443         0             1690    10345      0   \n",
       "1  2.0     2873         0              965     8551      0   \n",
       "2  4.0     2958         0             2429    10089      0   \n",
       "3  2.0     3219         0             1060     7996      0   \n",
       "4  2.0     3387         0              979     8224      0   \n",
       "\n",
       "                                            segments  \n",
       "0  [{'taxi': [], 'walking': {'origin': '113.29036...  \n",
       "1  [{'taxi': [], 'walking': {'origin': '113.29036...  \n",
       "2  [{'taxi': [], 'walking': {'origin': '113.29036...  \n",
       "3  [{'taxi': [], 'walking': {'origin': '113.29036...  \n",
       "4  [{'taxi': [], 'walking': {'origin': '113.29036...  "
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(中大_天河城[\"route\"]['transits'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>taxi</th>\n",
       "      <th>exit</th>\n",
       "      <th>walking.origin</th>\n",
       "      <th>walking.destination</th>\n",
       "      <th>walking.distance</th>\n",
       "      <th>walking.duration</th>\n",
       "      <th>walking.steps</th>\n",
       "      <th>bus.buslines</th>\n",
       "      <th>entrance.name</th>\n",
       "      <th>entrance.location</th>\n",
       "      <th>railway.via_stops</th>\n",
       "      <th>railway.alters</th>\n",
       "      <th>railway.spaces</th>\n",
       "      <th>walking</th>\n",
       "      <th>entrance</th>\n",
       "      <th>exit.name</th>\n",
       "      <th>exit.location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.290367,23.128555</td>\n",
       "      <td>113.296722,23.134483</td>\n",
       "      <td>1274</td>\n",
       "      <td>1092</td>\n",
       "      <td>[{'instruction': '沿岭南路步行139米右转', 'road': '岭南路'...</td>\n",
       "      <td>[{'departure_stop': {'name': '区庄', 'id': '4401...</td>\n",
       "      <td>E口</td>\n",
       "      <td>113.296318,23.134756</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>[{'departure_stop': {'name': '员村', 'id': '9000...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>F口</td>\n",
       "      <td>113.362473,23.124685</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.362877,23.125317</td>\n",
       "      <td>113.361488,23.124657</td>\n",
       "      <td>415</td>\n",
       "      <td>355</td>\n",
       "      <td>[{'instruction': '步行195米左转', 'road': [], 'dist...</td>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>[]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  taxi exit        walking.origin   walking.destination walking.distance  \\\n",
       "0   []   []  113.290367,23.128555  113.296722,23.134483             1274   \n",
       "1   []  NaN                   NaN                   NaN              NaN   \n",
       "2   []   []  113.362877,23.125317  113.361488,23.124657              415   \n",
       "\n",
       "  walking.duration                                      walking.steps  \\\n",
       "0             1092  [{'instruction': '沿岭南路步行139米右转', 'road': '岭南路'...   \n",
       "1              NaN                                                NaN   \n",
       "2              355  [{'instruction': '步行195米左转', 'road': [], 'dist...   \n",
       "\n",
       "                                        bus.buslines entrance.name  \\\n",
       "0  [{'departure_stop': {'name': '区庄', 'id': '4401...            E口   \n",
       "1  [{'departure_stop': {'name': '员村', 'id': '9000...           NaN   \n",
       "2                                                 []           NaN   \n",
       "\n",
       "      entrance.location railway.via_stops railway.alters railway.spaces  \\\n",
       "0  113.296318,23.134756                []             []             []   \n",
       "1                   NaN                []             []             []   \n",
       "2                   NaN                []             []             []   \n",
       "\n",
       "  walking entrance exit.name         exit.location  \n",
       "0     NaN      NaN       NaN                   NaN  \n",
       "1      []       []        F口  113.362473,23.124685  \n",
       "2     NaN       []       NaN                   NaN  "
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(中大_天河城[\"route\"]['transits'][0]['segments'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>id</th>\n",
       "      <th>type</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>bustimetag</th>\n",
       "      <th>start_time</th>\n",
       "      <th>end_time</th>\n",
       "      <th>via_num</th>\n",
       "      <th>via_stops</th>\n",
       "      <th>departure_stop.name</th>\n",
       "      <th>departure_stop.id</th>\n",
       "      <th>departure_stop.location</th>\n",
       "      <th>arrival_stop.name</th>\n",
       "      <th>arrival_stop.id</th>\n",
       "      <th>arrival_stop.location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>地铁5号线(滘口--文冲)</td>\n",
       "      <td>440100023037</td>\n",
       "      <td>地铁线路</td>\n",
       "      <td>7660</td>\n",
       "      <td>876</td>\n",
       "      <td>113.296725,23.134483;113.297627,23.134484;113....</td>\n",
       "      <td>0</td>\n",
       "      <td>0615</td>\n",
       "      <td>2315</td>\n",
       "      <td>6</td>\n",
       "      <td>[{'name': '动物园', 'id': '440100023037011', 'loc...</td>\n",
       "      <td>区庄</td>\n",
       "      <td>440100023037010</td>\n",
       "      <td>113.296725,23.134483</td>\n",
       "      <td>员村</td>\n",
       "      <td>440100023037017</td>\n",
       "      <td>113.363663,23.115768</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            name            id  type distance duration  \\\n",
       "0  地铁5号线(滘口--文冲)  440100023037  地铁线路     7660      876   \n",
       "\n",
       "                                            polyline bustimetag start_time  \\\n",
       "0  113.296725,23.134483;113.297627,23.134484;113....          0       0615   \n",
       "\n",
       "  end_time via_num                                          via_stops  \\\n",
       "0     2315       6  [{'name': '动物园', 'id': '440100023037011', 'loc...   \n",
       "\n",
       "  departure_stop.name departure_stop.id departure_stop.location  \\\n",
       "0                  区庄   440100023037010    113.296725,23.134483   \n",
       "\n",
       "  arrival_stop.name  arrival_stop.id arrival_stop.location  \n",
       "0                员村  440100023037017  113.363663,23.115768  "
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_bus_基本信息 = pd.json_normalize(中大_天河城[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"])\n",
    "df_bus_基本信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>_地铁5号线</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>动物园</td>\n",
       "      <td>440100023037011</td>\n",
       "      <td>113.307291,23.134503</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>杨箕</td>\n",
       "      <td>440100023037012</td>\n",
       "      <td>113.307692,23.127284</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>五羊邨</td>\n",
       "      <td>440100023037013</td>\n",
       "      <td>113.314249,23.119843</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>珠江新城</td>\n",
       "      <td>440100023037014</td>\n",
       "      <td>113.321206,23.119293</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>猎德</td>\n",
       "      <td>440100023037015</td>\n",
       "      <td>113.332105,23.118539</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>潭村</td>\n",
       "      <td>440100023037016</td>\n",
       "      <td>113.345949,23.117366</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  _地铁5号线               id              location\n",
       "0    动物园  440100023037011  113.307291,23.134503\n",
       "1     杨箕  440100023037012  113.307692,23.127284\n",
       "2    五羊邨  440100023037013  113.314249,23.119843\n",
       "3   珠江新城  440100023037014  113.321206,23.119293\n",
       "4     猎德  440100023037015  113.332105,23.118539\n",
       "5     潭村  440100023037016  113.345949,23.117366"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 交通信息处理结果\n",
    "_地铁5号线 = pd.json_normalize(中大_天河城[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"][0][\"via_stops\"]).rename(columns={\"name\":\"_地铁5号线\"})\n",
    "display(_地铁5号线)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 行政区域划分"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0758</td>\n",
       "      <td>441200</td>\n",
       "      <td>肇庆市</td>\n",
       "      <td>112.472529,23.051546</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0758', 'adcode': '441224', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0757</td>\n",
       "      <td>440600</td>\n",
       "      <td>佛山市</td>\n",
       "      <td>113.122717,23.028762</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0757', 'adcode': '440607', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0754</td>\n",
       "      <td>440500</td>\n",
       "      <td>汕头市</td>\n",
       "      <td>116.708463,23.37102</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0754', 'adcode': '440513', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0752</td>\n",
       "      <td>441300</td>\n",
       "      <td>惠州市</td>\n",
       "      <td>114.412599,23.079404</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0752', 'adcode': '441324', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0755</td>\n",
       "      <td>440300</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>114.085947,22.547</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0755', 'adcode': '440306', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0756</td>\n",
       "      <td>440400</td>\n",
       "      <td>珠海市</td>\n",
       "      <td>113.553986,22.224979</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0756', 'adcode': '440402', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0759</td>\n",
       "      <td>440800</td>\n",
       "      <td>湛江市</td>\n",
       "      <td>110.364977,21.274898</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0759', 'adcode': '440883', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0662</td>\n",
       "      <td>441700</td>\n",
       "      <td>阳江市</td>\n",
       "      <td>111.975107,21.859222</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0662', 'adcode': '441781', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0660</td>\n",
       "      <td>441500</td>\n",
       "      <td>汕尾市</td>\n",
       "      <td>115.364238,22.774485</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0660', 'adcode': '441523', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0768</td>\n",
       "      <td>445100</td>\n",
       "      <td>潮州市</td>\n",
       "      <td>116.632301,23.661701</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0768', 'adcode': '445122', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>0750</td>\n",
       "      <td>440700</td>\n",
       "      <td>江门市</td>\n",
       "      <td>113.094942,22.590431</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0750', 'adcode': '440784', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0766</td>\n",
       "      <td>445300</td>\n",
       "      <td>云浮市</td>\n",
       "      <td>112.044439,22.929801</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0766', 'adcode': '445322', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>0767</td>\n",
       "      <td>442100</td>\n",
       "      <td>东沙群岛</td>\n",
       "      <td>116.887312,20.617512</td>\n",
       "      <td>city</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>0668</td>\n",
       "      <td>440900</td>\n",
       "      <td>茂名市</td>\n",
       "      <td>110.919229,21.659751</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0668', 'adcode': '440983', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>0762</td>\n",
       "      <td>441600</td>\n",
       "      <td>河源市</td>\n",
       "      <td>114.697802,23.746266</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0762', 'adcode': '441622', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>0753</td>\n",
       "      <td>441400</td>\n",
       "      <td>梅州市</td>\n",
       "      <td>116.117582,24.299112</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0753', 'adcode': '441427', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>0769</td>\n",
       "      <td>441900</td>\n",
       "      <td>东莞市</td>\n",
       "      <td>113.746262,23.046237</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0769', 'adcode': '441900', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>0663</td>\n",
       "      <td>445200</td>\n",
       "      <td>揭阳市</td>\n",
       "      <td>116.355733,23.543778</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0663', 'adcode': '445222', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>0763</td>\n",
       "      <td>441800</td>\n",
       "      <td>清远市</td>\n",
       "      <td>113.051227,23.685022</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0763', 'adcode': '441882', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>0751</td>\n",
       "      <td>440200</td>\n",
       "      <td>韶关市</td>\n",
       "      <td>113.591544,24.801322</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0751', 'adcode': '440282', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>020</td>\n",
       "      <td>440100</td>\n",
       "      <td>广州市</td>\n",
       "      <td>113.280637,23.125178</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '020', 'adcode': '440117', 'name...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>0760</td>\n",
       "      <td>442000</td>\n",
       "      <td>中山市</td>\n",
       "      <td>113.382391,22.521113</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0760', 'adcode': '442000', 'nam...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode  name                center level  \\\n",
       "0      0758  441200   肇庆市  112.472529,23.051546  city   \n",
       "1      0757  440600   佛山市  113.122717,23.028762  city   \n",
       "2      0754  440500   汕头市   116.708463,23.37102  city   \n",
       "3      0752  441300   惠州市  114.412599,23.079404  city   \n",
       "4      0755  440300   深圳市     114.085947,22.547  city   \n",
       "5      0756  440400   珠海市  113.553986,22.224979  city   \n",
       "6      0759  440800   湛江市  110.364977,21.274898  city   \n",
       "7      0662  441700   阳江市  111.975107,21.859222  city   \n",
       "8      0660  441500   汕尾市  115.364238,22.774485  city   \n",
       "9      0768  445100   潮州市  116.632301,23.661701  city   \n",
       "10     0750  440700   江门市  113.094942,22.590431  city   \n",
       "11     0766  445300   云浮市  112.044439,22.929801  city   \n",
       "12     0767  442100  东沙群岛  116.887312,20.617512  city   \n",
       "13     0668  440900   茂名市  110.919229,21.659751  city   \n",
       "14     0762  441600   河源市  114.697802,23.746266  city   \n",
       "15     0753  441400   梅州市  116.117582,24.299112  city   \n",
       "16     0769  441900   东莞市  113.746262,23.046237  city   \n",
       "17     0663  445200   揭阳市  116.355733,23.543778  city   \n",
       "18     0763  441800   清远市  113.051227,23.685022  city   \n",
       "19     0751  440200   韶关市  113.591544,24.801322  city   \n",
       "20      020  440100   广州市  113.280637,23.125178  city   \n",
       "21     0760  442000   中山市  113.382391,22.521113  city   \n",
       "\n",
       "                                            districts  \n",
       "0   [{'citycode': '0758', 'adcode': '441224', 'nam...  \n",
       "1   [{'citycode': '0757', 'adcode': '440607', 'nam...  \n",
       "2   [{'citycode': '0754', 'adcode': '440513', 'nam...  \n",
       "3   [{'citycode': '0752', 'adcode': '441324', 'nam...  \n",
       "4   [{'citycode': '0755', 'adcode': '440306', 'nam...  \n",
       "5   [{'citycode': '0756', 'adcode': '440402', 'nam...  \n",
       "6   [{'citycode': '0759', 'adcode': '440883', 'nam...  \n",
       "7   [{'citycode': '0662', 'adcode': '441781', 'nam...  \n",
       "8   [{'citycode': '0660', 'adcode': '441523', 'nam...  \n",
       "9   [{'citycode': '0768', 'adcode': '445122', 'nam...  \n",
       "10  [{'citycode': '0750', 'adcode': '440784', 'nam...  \n",
       "11  [{'citycode': '0766', 'adcode': '445322', 'nam...  \n",
       "12                                                 []  \n",
       "13  [{'citycode': '0668', 'adcode': '440983', 'nam...  \n",
       "14  [{'citycode': '0762', 'adcode': '441622', 'nam...  \n",
       "15  [{'citycode': '0753', 'adcode': '441427', 'nam...  \n",
       "16  [{'citycode': '0769', 'adcode': '441900', 'nam...  \n",
       "17  [{'citycode': '0663', 'adcode': '445222', 'nam...  \n",
       "18  [{'citycode': '0763', 'adcode': '441882', 'nam...  \n",
       "19  [{'citycode': '0751', 'adcode': '440282', 'nam...  \n",
       "20  [{'citycode': '020', 'adcode': '440117', 'name...  \n",
       "21  [{'citycode': '0760', 'adcode': '442000', 'nam...  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0660</td>\n",
       "      <td>441523</td>\n",
       "      <td>陆河县</td>\n",
       "      <td>115.657565,23.302682</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0660', 'adcode': '441523', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0660</td>\n",
       "      <td>441502</td>\n",
       "      <td>城区</td>\n",
       "      <td>115.363667,22.776227</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0660', 'adcode': '441502', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0660</td>\n",
       "      <td>441521</td>\n",
       "      <td>海丰县</td>\n",
       "      <td>115.337324,22.971042</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0660', 'adcode': '441521', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>陆丰市</td>\n",
       "      <td>115.644203,22.946104</td>\n",
       "      <td>district</td>\n",
       "      <td>[{'citycode': '0660', 'adcode': '441581', 'nam...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  citycode  adcode name                center     level  \\\n",
       "0     0660  441523  陆河县  115.657565,23.302682  district   \n",
       "1     0660  441502   城区  115.363667,22.776227  district   \n",
       "2     0660  441521  海丰县  115.337324,22.971042  district   \n",
       "3     0660  441581  陆丰市  115.644203,22.946104  district   \n",
       "\n",
       "                                           districts  \n",
       "0  [{'citycode': '0660', 'adcode': '441523', 'nam...  \n",
       "1  [{'citycode': '0660', 'adcode': '441502', 'nam...  \n",
       "2  [{'citycode': '0660', 'adcode': '441521', 'nam...  \n",
       "3  [{'citycode': '0660', 'adcode': '441581', 'nam...  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>碣石镇</td>\n",
       "      <td>115.835,22.7229</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>八万镇</td>\n",
       "      <td>115.694,23.0645</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>华侨管理区</td>\n",
       "      <td>115.904,22.9786</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>铜锣湖农场</td>\n",
       "      <td>115.888,23.036</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>东海街道</td>\n",
       "      <td>115.66,22.9598</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>陂洋镇</td>\n",
       "      <td>115.922,23.098</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>甲子镇</td>\n",
       "      <td>116.061,22.8744</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>湖东镇</td>\n",
       "      <td>116.004,22.8695</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>博美镇</td>\n",
       "      <td>115.75,22.9647</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>甲东镇</td>\n",
       "      <td>116.11,22.8143</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>桥冲镇</td>\n",
       "      <td>115.759,22.8727</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>河西街道</td>\n",
       "      <td>115.571,23.0108</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>内湖镇</td>\n",
       "      <td>115.822,23.0078</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>湖东林场</td>\n",
       "      <td>115.91,22.7855</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>河东镇</td>\n",
       "      <td>115.702,23.0367</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>城东街道</td>\n",
       "      <td>115.66,22.9598</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>南塘镇</td>\n",
       "      <td>115.897,22.9947</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>甲西镇</td>\n",
       "      <td>116.02,22.9354</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>星都经济开发试验区</td>\n",
       "      <td>115.508,22.991</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>红岭林场</td>\n",
       "      <td>115.599,23.0273</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>畜牧果林场</td>\n",
       "      <td>115.678,23.0081</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>东海岸林场</td>\n",
       "      <td>116.185,22.8717</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>上英镇</td>\n",
       "      <td>115.605,22.8728</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>潭西镇</td>\n",
       "      <td>115.56,22.9588</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>大安农场</td>\n",
       "      <td>115.587,23.1097</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>罗经嶂林场</td>\n",
       "      <td>115.792,23.0101</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>大安镇</td>\n",
       "      <td>115.599,23.1303</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>金厢镇</td>\n",
       "      <td>115.676,22.865</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>0660</td>\n",
       "      <td>441581</td>\n",
       "      <td>西南镇</td>\n",
       "      <td>115.564,23.0907</td>\n",
       "      <td>street</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode       name           center   level districts\n",
       "0      0660  441581        碣石镇  115.835,22.7229  street        []\n",
       "1      0660  441581        八万镇  115.694,23.0645  street        []\n",
       "2      0660  441581      华侨管理区  115.904,22.9786  street        []\n",
       "3      0660  441581      铜锣湖农场   115.888,23.036  street        []\n",
       "4      0660  441581       东海街道   115.66,22.9598  street        []\n",
       "5      0660  441581        陂洋镇   115.922,23.098  street        []\n",
       "6      0660  441581        甲子镇  116.061,22.8744  street        []\n",
       "7      0660  441581        湖东镇  116.004,22.8695  street        []\n",
       "8      0660  441581        博美镇   115.75,22.9647  street        []\n",
       "9      0660  441581        甲东镇   116.11,22.8143  street        []\n",
       "10     0660  441581        桥冲镇  115.759,22.8727  street        []\n",
       "11     0660  441581       河西街道  115.571,23.0108  street        []\n",
       "12     0660  441581        内湖镇  115.822,23.0078  street        []\n",
       "13     0660  441581       湖东林场   115.91,22.7855  street        []\n",
       "14     0660  441581        河东镇  115.702,23.0367  street        []\n",
       "15     0660  441581       城东街道   115.66,22.9598  street        []\n",
       "16     0660  441581        南塘镇  115.897,22.9947  street        []\n",
       "17     0660  441581        甲西镇   116.02,22.9354  street        []\n",
       "18     0660  441581  星都经济开发试验区   115.508,22.991  street        []\n",
       "19     0660  441581       红岭林场  115.599,23.0273  street        []\n",
       "20     0660  441581      畜牧果林场  115.678,23.0081  street        []\n",
       "21     0660  441581      东海岸林场  116.185,22.8717  street        []\n",
       "22     0660  441581        上英镇  115.605,22.8728  street        []\n",
       "23     0660  441581        潭西镇   115.56,22.9588  street        []\n",
       "24     0660  441581       大安农场  115.587,23.1097  street        []\n",
       "25     0660  441581      罗经嶂林场  115.792,23.0101  street        []\n",
       "26     0660  441581        大安镇  115.599,23.1303  street        []\n",
       "27     0660  441581        金厢镇   115.676,22.865  street        []\n",
       "28     0660  441581        西南镇  115.564,23.0907  street        []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "def district(keywords,subdistrict=None,page=None,offset=None,extensions='base',filter=None,)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'keywords':keywords,\n",
    "        'subdistrict':subdistrict,\n",
    "        'page':page,\n",
    "        'offset':offset,\n",
    "        'extensions':extensions,\n",
    "        'filter':filter,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "行政区域 = district(keywords='广东',extensions='all',subdistrict=3)\n",
    "\n",
    "df_行政区域_1级 = pd.json_normalize(行政区域[\"districts\"][0]['districts'])\n",
    "df_行政区域_2级_汕尾市 = pd.json_normalize(行政区域[\"districts\"][0]['districts'][8]['districts'])\n",
    "df_行政区域_3级_陆丰市 = pd.json_normalize(行政区域[\"districts\"][0]['districts'][8]['districts'][3]['districts'])\n",
    "display(df_行政区域_1级,df_行政区域_2级_汕尾市,df_行政区域_3级_陆丰市)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 搜索POI"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '302',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B00140458B',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东工业大学(龙洞校区)',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '迎龙路161号',\n",
       "   'location': '113.359713,23.19677',\n",
       "   'tel': '020-87082921',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440106',\n",
       "   'adname': '天河区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413623812',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F010043_72087',\n",
       "   'entr_location': '113.364790,23.195436',\n",
       "   'business_area': '龙洞',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-15 20:21:25',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B00141HYUW ',\n",
       "     'name': ' 广东工业大学龙洞校区(东南门) ',\n",
       "     'sname': ' 东南门 ',\n",
       "     'location': '113.364707,23.195460',\n",
       "     'address': ' 龙洞街迎龙路161号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/141b7659bc7aeb993100980808f322a9'},\n",
       "    {'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/92efcbabaf296256cf568049791cbf8c'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0279761ff16fc3dcd10e5912a51c026b'}]},\n",
       "  {'id': 'B0FFFFQZDE',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州医科大学越秀校区',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '东风西路195号',\n",
       "   'location': '113.256131,23.134038',\n",
       "   'tel': '020-81340278;020-81340448',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440104',\n",
       "   'adname': '越秀区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413525021',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_603745',\n",
       "   'entr_location': '113.255942,23.135396',\n",
       "   'business_area': '东风',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-25 11:57:58',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bd42c117adc1b03b2dc77821754276ed'},\n",
       "    {'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/87d1ed25ddca859aa8886312aa8d5837'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d0b8c1500ff522ab27d0f92cfa022ef4'}]},\n",
       "  {'id': 'B00141IHRZ',\n",
       "   'parent': 'B0FFIGLX5N',\n",
       "   'childtype': '309',\n",
       "   'name': '中山大学广州校区南校园',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '新港西路135号',\n",
       "   'location': '113.298415,23.096714',\n",
       "   'tel': '020-84112828;020-84036491',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440105',\n",
       "   'adname': '海珠区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413521312',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_948758;71653',\n",
       "   'entr_location': '113.297039,23.091104',\n",
       "   'business_area': '新港',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-22 11:33:30',\n",
       "   'alias': '中山大学南校区|广州中大',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.5', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B00140TAV2 ',\n",
       "     'name': ' 中山大学南校区(北门) ',\n",
       "     'sname': ' 北门 ',\n",
       "     'location': '113.300039,23.102687',\n",
       "     'address': ' 新港西路135号中山大学南校区东北区398号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 990000 '},\n",
       "    {'id': ' B00140TVAB ',\n",
       "     'name': ' 中山大学广州校区南校园(南门) ',\n",
       "     'sname': ' 南门 ',\n",
       "     'location': '113.29705,23.091124',\n",
       "     'address': ' 新港西路135号中山大学南校区 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B00140AQP4 ',\n",
       "     'name': ' 中山大学广州校区南校园(西门) ',\n",
       "     'sname': ' 西门 ',\n",
       "     'location': '113.2914,23.092947',\n",
       "     'address': ' 新港西路135号中山大学南校区 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B001402641 ',\n",
       "     'name': ' 中山大学广州校区南校园(东校门) ',\n",
       "     'sname': ' 东校门 ',\n",
       "     'location': '113.303862,23.094743',\n",
       "     'address': ' 新港西路135号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f2ffc7743773caf2aab3929e9e02a997'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4699806b0fc67194a8c6ee5cf3ed6266'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a9dd44d4d4e70cf01aaf96da95c4f35b'}]},\n",
       "  {'id': 'B00140W6FI',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东交通职业技术学院花都校区',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '工业大道东11号',\n",
       "   'location': '113.203282,23.366957',\n",
       "   'tel': '020-86863468',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440114',\n",
       "   'adname': '花都区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3513014600',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F008042_198173;128817',\n",
       "   'entr_location': '113.202664,23.367478',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-15 12:41:37',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B00140UFHS ',\n",
       "     'name': ' 广东交通职业技术学院花都校区(西北门) ',\n",
       "     'sname': ' 西北门 ',\n",
       "     'location': '113.202680,23.367438',\n",
       "     'address': ' 新华镇工业大道11号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991401 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/844717a66f6f45f3e8781c27fa387180'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/48e6c18adacdbb4f44cb0301fd4ea1b0'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2c25a049ffb4a676f6bdf6babe9532bc'}]},\n",
       "  {'id': 'B001409A53',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东培正学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '培正路53号',\n",
       "   'location': '113.090459,23.410542',\n",
       "   'tel': '020-86710904',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440114',\n",
       "   'adname': '花都区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3513009700',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F008041_54',\n",
       "   'entr_location': '113.092929,23.409245',\n",
       "   'business_area': '赤坭村',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-24 15:52:06',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B0FFIIMMY2 ',\n",
       "     'name': ' 广东培正学院(北门) ',\n",
       "     'sname': ' 北门 ',\n",
       "     'location': '113.094676,23.414785',\n",
       "     'address': ' 培正路53号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B00141J9HV ',\n",
       "     'name': ' 广东培正学院(东南门) ',\n",
       "     'sname': ' 东南门 ',\n",
       "     'location': '113.092901,23.409255',\n",
       "     'address': ' 培正路53号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B0FFI5W8P2 ',\n",
       "     'name': ' 广东培正学院停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.091820,23.409761',\n",
       "     'address': ' 赤坭镇培正路53号广东培正学院 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8d549f92c5aeb4926695f220094b142c'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5576356f53037759b1cddc9dd2fcd60a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1fe4dfacc5459332c9878d0acd5cd381'}]},\n",
       "  {'id': 'B00140BQCP',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州美术学院(大学城校区)',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '大学城外环西路168号',\n",
       "   'location': '113.382675,23.038572',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': 'www.gzarts.edu.cn',\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440113',\n",
       "   'adname': '番禺区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413434011',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F012044_85969',\n",
       "   'entr_location': '113.385018,23.037662',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-17 15:58:24',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.7', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B00141J1UH ',\n",
       "     'name': ' 广州美术学院大学城校区(南2门) ',\n",
       "     'sname': ' 南2门 ',\n",
       "     'location': '113.382624,23.035882',\n",
       "     'address': ' 大学城外环西路168号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B001423P0V ',\n",
       "     'name': ' 广州美术学院大学城校区停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.383304,23.036106',\n",
       "     'address': ' 大学城外环西路北150米 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '}],\n",
       "   'photos': [{'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c68c8d3ed1df8f9d7b5d36d80fa9c439'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bfe8557b23557222319299609d428374'},\n",
       "    {'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bcb2efea79f4979b4778cd1a0ed60cad'}]},\n",
       "  {'id': 'B00140WEMJ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东外语外贸大学(北校区)',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '白云大道北2号',\n",
       "   'location': '113.29248,23.200471',\n",
       "   'tel': '020-36204310;020-36209026;020-83308484',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440111',\n",
       "   'adname': '白云区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413624301',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F010043_793967;73408',\n",
       "   'entr_location': '113.287576,23.199968',\n",
       "   'business_area': '白云大道',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-20 17:18:58',\n",
       "   'alias': '外语外贸大学',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B00140B6G3 ',\n",
       "     'name': ' 广东外语外贸大学北校区(西门) ',\n",
       "     'sname': ' 西门 ',\n",
       "     'location': '113.287583,23.199975',\n",
       "     'address': ' 白云大道北2号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '},\n",
       "    {'id': ' B00141KHZV ',\n",
       "     'name': ' 广东外语外贸大学北校区停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.289056,23.197722',\n",
       "     'address': ' 白云大道北2号广东外语外贸大学北校区内 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B00141HX4Z ',\n",
       "     'name': ' 广东外语外贸大学北校区停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.293020,23.198988',\n",
       "     'address': ' 白云大道北2号广东外语外贸大学北校区内 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFG67WJR ',\n",
       "     'name': ' 广东外语外贸大学北校区停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.297436,23.197607',\n",
       "     'address': ' 白云大道北2号广东外语外贸大学北校区内 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFG69GAZ ',\n",
       "     'name': ' 广东外语外贸大学北校区停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.291531,23.205214',\n",
       "     'address': ' 白云大道北2号广东外语外贸大学北校区内 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '},\n",
       "    {'id': ' B0FFG68MX2 ',\n",
       "     'name': ' 广东外语外贸大学北校区停车场 ',\n",
       "     'sname': ' 停车场 ',\n",
       "     'location': '113.291149,23.200591',\n",
       "     'address': ' 白云大道北2号广东外语外贸大学北校区内 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '停车场',\n",
       "     'typecode': ' 150904 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/50be85cf4cd3a3cea167482f336a32a8'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7db4b9407ff72f88fe36c248618bca8f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53dcfc72013d754ba1ef87bc49c8096f'}]},\n",
       "  {'id': 'B00140UF1D',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东技术师范大学',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '中山大道西293号',\n",
       "   'location': '113.371742,23.131147',\n",
       "   'tel': '020-38257322;020-38256659',\n",
       "   'postcode': [],\n",
       "   'website': 'www.gdin.edu.cn',\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440106',\n",
       "   'adname': '天河区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413525922',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_699041',\n",
       "   'entr_location': '113.371510,23.129655',\n",
       "   'business_area': '上社村',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-08 16:27:47',\n",
       "   'alias': '广东师范技术学院|广东技术师范学院',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B00140TVFC ',\n",
       "     'name': ' 广东技术师范大学(西南门) ',\n",
       "     'sname': ' 西南门 ',\n",
       "     'location': '113.371504,23.129789',\n",
       "     'address': ' 中山大道西293号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991401 '}],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5840a03dded03463d363d684d1892526'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7b6d43a8d7706f1ff22812921d64e08f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/803a8ffcf7f6b1969c5757c8c4b252ef'}]},\n",
       "  {'id': 'B00141OISJ',\n",
       "   'parent': 'B00140385E',\n",
       "   'childtype': '309',\n",
       "   'name': '广州中医药大学三元里校区',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '机场路12号',\n",
       "   'location': '113.26713,23.156024',\n",
       "   'tel': '020-86363563',\n",
       "   'postcode': '510405',\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440111',\n",
       "   'adname': '白云区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413528121',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_604051',\n",
       "   'entr_location': '113.263788,23.155384',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-13 18:40:53',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/94ad9e0cd1db5ab6667f96a579af7d27'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e5ef18f21bca2a71f0cf64c850418a6a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1662a71826f8fc86d4e630f85e25113c'}]},\n",
       "  {'id': 'B0FFGH24MR',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '暨南大学',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': [],\n",
       "   'location': '113.349402,23.133382',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440106',\n",
       "   'adname': '天河区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413526702',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.349745,23.135584',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-17 15:07:11',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.4', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/60316bdae9210287f633765a48dc9f64'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cc78db94234f74db4d2cea123e67c356'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8d1f76d52a69f6a9e54a92c30cea9d5e'}]},\n",
       "  {'id': 'B00140A367',\n",
       "   'parent': 'B0FFK7GDEE',\n",
       "   'childtype': '309',\n",
       "   'name': '广州大学桂花岗校区',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '桂花岗东1号',\n",
       "   'location': '113.266066,23.149009',\n",
       "   'tel': '020-36196087',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440104',\n",
       "   'adname': '越秀区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413527120',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011043_781965;721040;923924;721078;721080',\n",
       "   'entr_location': '113.265865,23.149747',\n",
       "   'business_area': '解放北',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-15 13:55:31',\n",
       "   'alias': '桂花岗广州大学',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B00140UG32 ',\n",
       "     'name': ' 广州大学桂花岗校区(东北门) ',\n",
       "     'sname': ' 东北门 ',\n",
       "     'location': '113.265856,23.149706',\n",
       "     'address': ' 桂花岗东1 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991401 '}],\n",
       "   'photos': [{'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4152aa7504576241c2a21d6ed03fc4b7'},\n",
       "    {'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/682e498d9e5e970e670841bec33e6cd8'},\n",
       "    {'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bcd959a58fc339bd10bb3db2fd3ecf12'}]},\n",
       "  {'id': 'B00140TVAS',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '昆明理工大学(广州校区)',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '中山大道中车陂北街28号',\n",
       "   'location': '113.399378,23.128946',\n",
       "   'tel': '020-82520210',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440106',\n",
       "   'adname': '天河区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413535112',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F011044_267218',\n",
       "   'entr_location': '113.397914,23.128374',\n",
       "   'business_area': '车陂',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-18 18:14:11',\n",
       "   'alias': '广州市广通工程技术职业培训学校',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.0', 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c927eb81f1fea92ff5d92012c1038448'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dc78aba0a1784708b54ebea96d21a806'}]},\n",
       "  {'id': 'B0FFIPCYV7',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州经济技术开发区行政学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '开发大道350号',\n",
       "   'location': '113.525724,23.059868',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440112',\n",
       "   'adname': '黄埔区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413447200',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F012045_11891',\n",
       "   'entr_location': '113.52556,23.060098',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-30 12:03:43',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/775dea571f24dc27c6f5bf64d1bda579'}]},\n",
       "  {'id': 'B0FFG8723C',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州工程技术职业学院(黄埔校区)',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '文冲街石化路石化大院166号',\n",
       "   'location': '113.472697,23.10515',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440112',\n",
       "   'adname': '黄埔区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413532712',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.47267,23.104944',\n",
       "   'business_area': '红山',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-26 16:43:13',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/96ce1bc6c800f048eb46dc27f391cd68'}]},\n",
       "  {'id': 'B0FFG5CSH0',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '湘南学院实习教学基地',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '温泉东路117号附近',\n",
       "   'location': '113.653704,23.653237',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440117',\n",
       "   'adname': '从化区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3513358210',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': '温泉',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-18 18:26:04',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/82489cd4cc8686615e0c92efb29a54a8'}]},\n",
       "  {'id': 'B0FFFV9MAC',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州民航职业技术学院(花都赤坭校区)',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '赤坭镇',\n",
       "   'location': '113.104034,23.395655',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440114',\n",
       "   'adname': '花都区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3513007810',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '113.101521,23.396726',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-25 11:31:46',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5d6d42dae7ef818ddc5fe3bade411789'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/92f466a0528336d95061a1001c6b11dc'}]},\n",
       "  {'id': 'B0FFFAIKXG',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广州商学院',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '九龙镇九龙大道',\n",
       "   'location': '113.56882,23.303876',\n",
       "   'tel': '020-82876130;020-82878480',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440112',\n",
       "   'adname': '黄埔区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413746511',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F009045_1694',\n",
       "   'entr_location': '113.567234,23.302894',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-14 16:01:12',\n",
       "   'alias': '华南师范增城学院',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7f9aa9a61ce609fb64c5268dbeaecb2d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cc3c2c5e4bd30f7502fad8fa44a813d6'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/14769691648dfb561feb31d28266f3da'}]},\n",
       "  {'id': 'B00141KFHP',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '南方医科大学',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '沙太南路1023-1063号',\n",
       "   'location': '113.333184,23.187549',\n",
       "   'tel': '020-61648502;020-61640114;020-61648504',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440111',\n",
       "   'adname': '白云区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413622612',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F010043_795836;698321',\n",
       "   'entr_location': '113.33681,23.18735',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-08 18:44:45',\n",
       "   'alias': '中国人民解放军第一军医大学',\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/924e4108a6aea4f5888cd51937347202'},\n",
       "    {'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dc134e52a67d49a5b879b907aac003d3'},\n",
       "    {'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/46d6703b7403158af6a9bd2a9029fc84'}]},\n",
       "  {'id': 'B00141KFAQ',\n",
       "   'parent': 'B0FFK4HKF5',\n",
       "   'childtype': '309',\n",
       "   'name': '广州工程技术职业学院龙洞校区',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '龙洞街道天源路1121号',\n",
       "   'location': '113.360274,23.19088',\n",
       "   'tel': '020-87663584',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440106',\n",
       "   'adname': '天河区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3413622822',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F010043_86069;796418',\n",
       "   'entr_location': '113.359995,23.192728',\n",
       "   'business_area': '龙洞',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-26 13:59:22',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [{'id': ' B00141PSD3 ',\n",
       "     'name': ' 广州工程技术职业学院龙洞校区(东南门) ',\n",
       "     'sname': ' 东南门 ',\n",
       "     'location': '113.361026,23.189129',\n",
       "     'address': ' 天源路1121号 ',\n",
       "     'distance': ' 0 ',\n",
       "     'subtype': '门',\n",
       "     'typecode': ' 991400 '}],\n",
       "   'photos': [{'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/de5140322d3877562d3e32bb853f7cba'},\n",
       "    {'title': '内景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/291fbc555ebbefc29b22b159982d3fd0'}]},\n",
       "  {'id': 'B00141JRFZ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '广东第二师范学院(花都校区)',\n",
       "   'tag': [],\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'typecode': '141201',\n",
       "   'biz_type': [],\n",
       "   'address': '迎宾大道西30号',\n",
       "   'location': '113.185576,23.404948',\n",
       "   'tel': '020-36967708',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '440000',\n",
       "   'pname': '广东省',\n",
       "   'citycode': '020',\n",
       "   'cityname': '广州市',\n",
       "   'adcode': '440114',\n",
       "   'adname': '花都区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3513018412',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'F49F008042_144827',\n",
       "   'entr_location': '113.184975,23.398431',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-14 18:36:38',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': [], 'cost': []},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e0ff165cbe5814f3ab16f59f5411e590'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/09e302b3cda26be92ee17794a5363da2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2b0780d8ac5e1e90f46970e65db5e7bf'}]}]}"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 关键字搜索\n",
    "def place_text(keywords,types,city=None,citylimit=None,children=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'citylimit':citylimit,\n",
    "        'children':children,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "\n",
    "广州_大学 = place_text('大学','高等院校',city=\"广州市\",children=1,extensions='all')\n",
    "广州_大学"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>tag</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>...</th>\n",
       "      <th>discount_num</th>\n",
       "      <th>event</th>\n",
       "      <th>children</th>\n",
       "      <th>photos</th>\n",
       "      <th>indoor_data.cpid</th>\n",
       "      <th>indoor_data.floor</th>\n",
       "      <th>indoor_data.truefloor</th>\n",
       "      <th>indoor_data.cmsid</th>\n",
       "      <th>biz_ext.rating</th>\n",
       "      <th>biz_ext.cost</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B00140458B</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东工业大学(龙洞校区)</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>迎龙路161号</td>\n",
       "      <td>113.359713,23.19677</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B00141HYUW ', 'name': ' 广东工业大学龙洞校区(东...</td>\n",
       "      <td>[{'title': '内景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFFFQZDE</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州医科大学越秀校区</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>东风西路195号</td>\n",
       "      <td>113.256131,23.134038</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': '内景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B00141IHRZ</td>\n",
       "      <td>B0FFIGLX5N</td>\n",
       "      <td>309</td>\n",
       "      <td>中山大学广州校区南校园</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>新港西路135号</td>\n",
       "      <td>113.298415,23.096714</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B00140TAV2 ', 'name': ' 中山大学南校区(北门) ...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B00140W6FI</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东交通职业技术学院花都校区</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>工业大道东11号</td>\n",
       "      <td>113.203282,23.366957</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B00140UFHS ', 'name': ' 广东交通职业技术学院花都...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B001409A53</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东培正学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>培正路53号</td>\n",
       "      <td>113.090459,23.410542</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B0FFIIMMY2 ', 'name': ' 广东培正学院(北门) '...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B00140BQCP</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州美术学院(大学城校区)</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>大学城外环西路168号</td>\n",
       "      <td>113.382675,23.038572</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B00141J1UH ', 'name': ' 广州美术学院大学城校区(...</td>\n",
       "      <td>[{'title': '内景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.7</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B00140WEMJ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东外语外贸大学(北校区)</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>白云大道北2号</td>\n",
       "      <td>113.29248,23.200471</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B00140B6G3 ', 'name': ' 广东外语外贸大学北校区(...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B00140UF1D</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东技术师范大学</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山大道西293号</td>\n",
       "      <td>113.371742,23.131147</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B00140TVFC ', 'name': ' 广东技术师范大学(西南门...</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B00141OISJ</td>\n",
       "      <td>B00140385E</td>\n",
       "      <td>309</td>\n",
       "      <td>广州中医药大学三元里校区</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>机场路12号</td>\n",
       "      <td>113.26713,23.156024</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFGH24MR</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>暨南大学</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>113.349402,23.133382</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.4</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B00140A367</td>\n",
       "      <td>B0FFK7GDEE</td>\n",
       "      <td>309</td>\n",
       "      <td>广州大学桂花岗校区</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>桂花岗东1号</td>\n",
       "      <td>113.266066,23.149009</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B00140UG32 ', 'name': ' 广州大学桂花岗校区(东北...</td>\n",
       "      <td>[{'title': '内景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B00140TVAS</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>昆明理工大学(广州校区)</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>中山大道中车陂北街28号</td>\n",
       "      <td>113.399378,23.128946</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFIPCYV7</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州经济技术开发区行政学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>开发大道350号</td>\n",
       "      <td>113.525724,23.059868</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFG8723C</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州工程技术职业学院(黄埔校区)</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>文冲街石化路石化大院166号</td>\n",
       "      <td>113.472697,23.10515</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFG5CSH0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>湘南学院实习教学基地</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉东路117号附近</td>\n",
       "      <td>113.653704,23.653237</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFFV9MAC</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州民航职业技术学院(花都赤坭校区)</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>赤坭镇</td>\n",
       "      <td>113.104034,23.395655</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFFAIKXG</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广州商学院</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>九龙镇九龙大道</td>\n",
       "      <td>113.56882,23.303876</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': '外景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B00141KFHP</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>南方医科大学</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>沙太南路1023-1063号</td>\n",
       "      <td>113.333184,23.187549</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': '外景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B00141KFAQ</td>\n",
       "      <td>B0FFK4HKF5</td>\n",
       "      <td>309</td>\n",
       "      <td>广州工程技术职业学院龙洞校区</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>龙洞街道天源路1121号</td>\n",
       "      <td>113.360274,23.19088</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'id': ' B00141PSD3 ', 'name': ' 广州工程技术职业学院龙洞...</td>\n",
       "      <td>[{'title': '外景图', 'url': 'http://store.is.auto...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B00141JRFZ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>广东第二师范学院(花都校区)</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;高等院校</td>\n",
       "      <td>141201</td>\n",
       "      <td>[]</td>\n",
       "      <td>迎宾大道西30号</td>\n",
       "      <td>113.185576,23.404948</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>20 rows × 46 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            id      parent childtype                name tag            type  \\\n",
       "0   B00140458B          []        []        广东工业大学(龙洞校区)  []  科教文化服务;学校;高等院校   \n",
       "1   B0FFFFQZDE          []        []          广州医科大学越秀校区  []  科教文化服务;学校;高等院校   \n",
       "2   B00141IHRZ  B0FFIGLX5N       309         中山大学广州校区南校园  []  科教文化服务;学校;高等院校   \n",
       "3   B00140W6FI          []        []      广东交通职业技术学院花都校区  []  科教文化服务;学校;高等院校   \n",
       "4   B001409A53          []        []              广东培正学院  []  科教文化服务;学校;高等院校   \n",
       "5   B00140BQCP          []        []       广州美术学院(大学城校区)  []  科教文化服务;学校;高等院校   \n",
       "6   B00140WEMJ          []        []       广东外语外贸大学(北校区)  []  科教文化服务;学校;高等院校   \n",
       "7   B00140UF1D          []        []            广东技术师范大学  []  科教文化服务;学校;高等院校   \n",
       "8   B00141OISJ  B00140385E       309        广州中医药大学三元里校区  []  科教文化服务;学校;高等院校   \n",
       "9   B0FFGH24MR          []        []                暨南大学  []  科教文化服务;学校;高等院校   \n",
       "10  B00140A367  B0FFK7GDEE       309           广州大学桂花岗校区  []  科教文化服务;学校;高等院校   \n",
       "11  B00140TVAS          []        []        昆明理工大学(广州校区)  []  科教文化服务;学校;高等院校   \n",
       "12  B0FFIPCYV7          []        []       广州经济技术开发区行政学院  []  科教文化服务;学校;高等院校   \n",
       "13  B0FFG8723C          []        []    广州工程技术职业学院(黄埔校区)  []  科教文化服务;学校;高等院校   \n",
       "14  B0FFG5CSH0          []        []          湘南学院实习教学基地  []  科教文化服务;学校;高等院校   \n",
       "15  B0FFFV9MAC          []        []  广州民航职业技术学院(花都赤坭校区)  []  科教文化服务;学校;高等院校   \n",
       "16  B0FFFAIKXG          []        []               广州商学院  []  科教文化服务;学校;高等院校   \n",
       "17  B00141KFHP          []        []              南方医科大学  []  科教文化服务;学校;高等院校   \n",
       "18  B00141KFAQ  B0FFK4HKF5       309      广州工程技术职业学院龙洞校区  []  科教文化服务;学校;高等院校   \n",
       "19  B00141JRFZ          []        []      广东第二师范学院(花都校区)  []  科教文化服务;学校;高等院校   \n",
       "\n",
       "   typecode biz_type         address              location  ... discount_num  \\\n",
       "0    141201       []         迎龙路161号   113.359713,23.19677  ...            0   \n",
       "1    141201       []        东风西路195号  113.256131,23.134038  ...            0   \n",
       "2    141201       []        新港西路135号  113.298415,23.096714  ...            0   \n",
       "3    141201       []        工业大道东11号  113.203282,23.366957  ...            0   \n",
       "4    141201       []          培正路53号  113.090459,23.410542  ...            0   \n",
       "5    141201       []     大学城外环西路168号  113.382675,23.038572  ...            0   \n",
       "6    141201       []         白云大道北2号   113.29248,23.200471  ...            0   \n",
       "7    141201       []       中山大道西293号  113.371742,23.131147  ...            0   \n",
       "8    141201       []          机场路12号   113.26713,23.156024  ...            0   \n",
       "9    141201       []              []  113.349402,23.133382  ...            0   \n",
       "10   141201       []          桂花岗东1号  113.266066,23.149009  ...            0   \n",
       "11   141201       []    中山大道中车陂北街28号  113.399378,23.128946  ...            0   \n",
       "12   141201       []        开发大道350号  113.525724,23.059868  ...            0   \n",
       "13   141201       []  文冲街石化路石化大院166号   113.472697,23.10515  ...            0   \n",
       "14   141201       []      温泉东路117号附近  113.653704,23.653237  ...            0   \n",
       "15   141201       []             赤坭镇  113.104034,23.395655  ...            0   \n",
       "16   141201       []         九龙镇九龙大道   113.56882,23.303876  ...            0   \n",
       "17   141201       []  沙太南路1023-1063号  113.333184,23.187549  ...            0   \n",
       "18   141201       []    龙洞街道天源路1121号   113.360274,23.19088  ...            0   \n",
       "19   141201       []        迎宾大道西30号  113.185576,23.404948  ...            0   \n",
       "\n",
       "   event                                           children  \\\n",
       "0     []  [{'id': ' B00141HYUW ', 'name': ' 广东工业大学龙洞校区(东...   \n",
       "1     []                                                 []   \n",
       "2     []  [{'id': ' B00140TAV2 ', 'name': ' 中山大学南校区(北门) ...   \n",
       "3     []  [{'id': ' B00140UFHS ', 'name': ' 广东交通职业技术学院花都...   \n",
       "4     []  [{'id': ' B0FFIIMMY2 ', 'name': ' 广东培正学院(北门) '...   \n",
       "5     []  [{'id': ' B00141J1UH ', 'name': ' 广州美术学院大学城校区(...   \n",
       "6     []  [{'id': ' B00140B6G3 ', 'name': ' 广东外语外贸大学北校区(...   \n",
       "7     []  [{'id': ' B00140TVFC ', 'name': ' 广东技术师范大学(西南门...   \n",
       "8     []                                                 []   \n",
       "9     []                                                 []   \n",
       "10    []  [{'id': ' B00140UG32 ', 'name': ' 广州大学桂花岗校区(东北...   \n",
       "11    []                                                 []   \n",
       "12    []                                                 []   \n",
       "13    []                                                 []   \n",
       "14    []                                                 []   \n",
       "15    []                                                 []   \n",
       "16    []                                                 []   \n",
       "17    []                                                 []   \n",
       "18    []  [{'id': ' B00141PSD3 ', 'name': ' 广州工程技术职业学院龙洞...   \n",
       "19    []                                                 []   \n",
       "\n",
       "                                               photos indoor_data.cpid  \\\n",
       "0   [{'title': '内景图', 'url': 'http://store.is.auto...               []   \n",
       "1   [{'title': '内景图', 'url': 'http://store.is.auto...               []   \n",
       "2   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "3   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "4   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "5   [{'title': '内景图', 'url': 'http://store.is.auto...               []   \n",
       "6   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "7   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "8   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "9   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "10  [{'title': '内景图', 'url': 'http://store.is.auto...               []   \n",
       "11  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "12  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "13  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "14  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "15  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "16  [{'title': '外景图', 'url': 'http://store.is.auto...               []   \n",
       "17  [{'title': '外景图', 'url': 'http://store.is.auto...               []   \n",
       "18  [{'title': '外景图', 'url': 'http://store.is.auto...               []   \n",
       "19  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "\n",
       "   indoor_data.floor indoor_data.truefloor indoor_data.cmsid biz_ext.rating  \\\n",
       "0                 []                    []                []             []   \n",
       "1                 []                    []                []             []   \n",
       "2                 []                    []                []            4.5   \n",
       "3                 []                    []                []             []   \n",
       "4                 []                    []                []             []   \n",
       "5                 []                    []                []            4.7   \n",
       "6                 []                    []                []             []   \n",
       "7                 []                    []                []             []   \n",
       "8                 []                    []                []            4.0   \n",
       "9                 []                    []                []            4.4   \n",
       "10                []                    []                []             []   \n",
       "11                []                    []                []            3.0   \n",
       "12                []                    []                []             []   \n",
       "13                []                    []                []             []   \n",
       "14                []                    []                []             []   \n",
       "15                []                    []                []             []   \n",
       "16                []                    []                []             []   \n",
       "17                []                    []                []             []   \n",
       "18                []                    []                []             []   \n",
       "19                []                    []                []             []   \n",
       "\n",
       "   biz_ext.cost  \n",
       "0            []  \n",
       "1            []  \n",
       "2            []  \n",
       "3            []  \n",
       "4            []  \n",
       "5            []  \n",
       "6            []  \n",
       "7            []  \n",
       "8            []  \n",
       "9            []  \n",
       "10           []  \n",
       "11           []  \n",
       "12           []  \n",
       "13           []  \n",
       "14           []  \n",
       "15           []  \n",
       "16           []  \n",
       "17           []  \n",
       "18           []  \n",
       "19           []  \n",
       "\n",
       "[20 rows x 46 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_广州_大学 = pd.json_normalize(广州_大学[\"pois\"])\n",
    "display(df_广州_大学)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 周边搜索\n",
    "def place_around(location,keywords=None,types=None,city=None,redius=None,sortrule=None,offset=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'keywords':keywords,\n",
    "        'location':location,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'redius':redius,\n",
    "        'sortrule':sortrule,\n",
    "        'offset':offset,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '478',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B0FFLB846S',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '街电(榴芒一族中山大学南方学院店)',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'typecode': '072101',\n",
       "   'biz_type': [],\n",
       "   'address': '温泉镇笃行路20、22、24号中山大学南方学院',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': [],\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFL3KGLA',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '榴芒一族(中山大学南方学院店)',\n",
       "   'type': '餐饮服务;甜品店;甜品店',\n",
       "   'typecode': '050900',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇笃行路20、22、24号中山大学南方学院',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': [],\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKX3T5Y',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '爽爽石磨肠粉',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'typecode': '050118',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '从化温泉镇中山大学南方学院博学路6号',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': '18218913303',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHRQMFN',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '佳乐堡(中大南方分店)',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院东区第四饭堂二楼',\n",
       "   'location': '113.679287,23.632575',\n",
       "   'tel': [],\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKT2R96',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '避风塘',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'typecode': '050000',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院明辨路2号二、三层',\n",
       "   'location': '113.679286,23.632574',\n",
       "   'tel': [],\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKSLFAN',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': 'slim tea',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'typecode': '050000',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院明辨路2号二、三层',\n",
       "   'location': '113.679286,23.632574',\n",
       "   'tel': '18944690066',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKTDMOI',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '过气轻食屋',\n",
       "   'type': '餐饮服务;外国餐厅;外国餐厅',\n",
       "   'typecode': '050200',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13049636920',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKT57XY',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '吃个沙拉',\n",
       "   'type': '餐饮服务;外国餐厅;西餐厅(综合风味)',\n",
       "   'typecode': '050201',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市首层11号',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13543352415',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKT4WNY',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '莫凡烧烤',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'typecode': '050118',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13929768267',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKT2RSW',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '壹品煲仔饭(中大店)',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市首层28号',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13823186863',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKSZWZY',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '潮食尚',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '从化温泉镇中山大学南方学院明辩路2号',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13723795489',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKPZMKM',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '叫了只炸鸡(中山大学店)',\n",
       "   'type': '餐饮服务;外国餐厅;西餐厅(综合风味)',\n",
       "   'typecode': '050201',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼05号商铺',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '15815819311',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK9DGL3',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '烧烤时代',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'typecode': '050118',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13725173585',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK6DIYZ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '天天美食',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'typecode': '050118',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市首层11号',\n",
       "   'location': '113.679286,23.632573',\n",
       "   'tel': '13005660635',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK2V2QP',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '阿里山幸福便当',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市首层7号',\n",
       "   'location': '113.679292,23.632574',\n",
       "   'tel': '15818801644',\n",
       "   'distance': '0',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK28XPU',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '我家厨房',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '博学路中山大学南方学院后门润泰超市首层23号',\n",
       "   'location': '113.679289,23.632563',\n",
       "   'tel': '13926119100',\n",
       "   'distance': '1',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLLU813',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '怪兽充电(中山大学南方学院)',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'typecode': '072101',\n",
       "   'biz_type': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'location': '113.679262,23.632583',\n",
       "   'tel': [],\n",
       "   'distance': '2',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK6K7MM',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '焖有道(中大店)',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'typecode': '050118',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市一楼03号商铺',\n",
       "   'location': '113.679282,23.632538',\n",
       "   'tel': '18013781037',\n",
       "   'distance': '4',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFK8X6T8',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '仰望食集包角布',\n",
       "   'type': '餐饮服务;糕饼店;糕饼店',\n",
       "   'typecode': '050800',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇中山大学南方学院后门润泰超市首层',\n",
       "   'location': '113.679168,23.632480',\n",
       "   'tel': [],\n",
       "   'distance': '16',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHQXIPV',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '惠仁轩cafe(图书馆店)',\n",
       "   'type': '餐饮服务;茶艺馆;茶艺馆',\n",
       "   'typecode': '050600',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '温泉镇温泉大道882号中山大学南方学院行政楼1号',\n",
       "   'location': '113.678800,23.632922',\n",
       "   'tel': [],\n",
       "   'distance': '62',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []}]}"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# json信息\n",
    "中大南方_周边POI = place_around(中大南方_location)\n",
    "中大南方_周边POI"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>tel</th>\n",
       "      <th>distance</th>\n",
       "      <th>biz_ext</th>\n",
       "      <th>importance</th>\n",
       "      <th>shopid</th>\n",
       "      <th>shopinfo</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>photos</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFLB846S</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>街电(榴芒一族中山大学南方学院店)</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>072101</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉镇笃行路20、22、24号中山大学南方学院</td>\n",
       "      <td>113.679287,23.632575</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFL3KGLA</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>榴芒一族(中山大学南方学院店)</td>\n",
       "      <td>餐饮服务;甜品店;甜品店</td>\n",
       "      <td>050900</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇笃行路20、22、24号中山大学南方学院</td>\n",
       "      <td>113.679287,23.632575</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFKX3T5Y</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>爽爽石磨肠粉</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "      <td>050118</td>\n",
       "      <td>diner</td>\n",
       "      <td>从化温泉镇中山大学南方学院博学路6号</td>\n",
       "      <td>113.679287,23.632575</td>\n",
       "      <td>18218913303</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFHRQMFN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>佳乐堡(中大南方分店)</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院东区第四饭堂二楼</td>\n",
       "      <td>113.679287,23.632575</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B0FFKT2R96</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>避风塘</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>050000</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院明辨路2号二、三层</td>\n",
       "      <td>113.679286,23.632574</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFKSLFAN</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>slim tea</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>050000</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院明辨路2号二、三层</td>\n",
       "      <td>113.679286,23.632574</td>\n",
       "      <td>18944690066</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFKTDMOI</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>过气轻食屋</td>\n",
       "      <td>餐饮服务;外国餐厅;外国餐厅</td>\n",
       "      <td>050200</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13049636920</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFKT57XY</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>吃个沙拉</td>\n",
       "      <td>餐饮服务;外国餐厅;西餐厅(综合风味)</td>\n",
       "      <td>050201</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市首层11号</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13543352415</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFKT4WNY</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>莫凡烧烤</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "      <td>050118</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13929768267</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFKT2RSW</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>壹品煲仔饭(中大店)</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市首层28号</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13823186863</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFKSZWZY</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>潮食尚</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>从化温泉镇中山大学南方学院明辩路2号</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13723795489</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFKPZMKM</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>叫了只炸鸡(中山大学店)</td>\n",
       "      <td>餐饮服务;外国餐厅;西餐厅(综合风味)</td>\n",
       "      <td>050201</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼05号商铺</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>15815819311</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFK9DGL3</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>烧烤时代</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "      <td>050118</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13725173585</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFK6DIYZ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>天天美食</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "      <td>050118</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市首层11号</td>\n",
       "      <td>113.679286,23.632573</td>\n",
       "      <td>13005660635</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFK2V2QP</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>阿里山幸福便当</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市首层7号</td>\n",
       "      <td>113.679292,23.632574</td>\n",
       "      <td>15818801644</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFK28XPU</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>我家厨房</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>博学路中山大学南方学院后门润泰超市首层23号</td>\n",
       "      <td>113.679289,23.632563</td>\n",
       "      <td>13926119100</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFLLU813</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>怪兽充电(中山大学南方学院)</td>\n",
       "      <td>生活服务;共享设备;充电宝</td>\n",
       "      <td>072101</td>\n",
       "      <td>[]</td>\n",
       "      <td>温泉大道882号</td>\n",
       "      <td>113.679262,23.632583</td>\n",
       "      <td>[]</td>\n",
       "      <td>2</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFK6K7MM</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>焖有道(中大店)</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "      <td>050118</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市一楼03号商铺</td>\n",
       "      <td>113.679282,23.632538</td>\n",
       "      <td>18013781037</td>\n",
       "      <td>4</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFK8X6T8</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>仰望食集包角布</td>\n",
       "      <td>餐饮服务;糕饼店;糕饼店</td>\n",
       "      <td>050800</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇中山大学南方学院后门润泰超市首层</td>\n",
       "      <td>113.679168,23.632480</td>\n",
       "      <td>[]</td>\n",
       "      <td>16</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFHQXIPV</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>惠仁轩cafe(图书馆店)</td>\n",
       "      <td>餐饮服务;茶艺馆;茶艺馆</td>\n",
       "      <td>050600</td>\n",
       "      <td>diner</td>\n",
       "      <td>温泉镇温泉大道882号中山大学南方学院行政楼1号</td>\n",
       "      <td>113.678800,23.632922</td>\n",
       "      <td>[]</td>\n",
       "      <td>62</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id parent childtype               name                 type  \\\n",
       "0   B0FFLB846S     []        []  街电(榴芒一族中山大学南方学院店)        生活服务;共享设备;充电宝   \n",
       "1   B0FFL3KGLA     []        []    榴芒一族(中山大学南方学院店)         餐饮服务;甜品店;甜品店   \n",
       "2   B0FFKX3T5Y     []        []             爽爽石磨肠粉   餐饮服务;中餐厅;特色/地方风味餐厅   \n",
       "3   B0FFHRQMFN     []        []        佳乐堡(中大南方分店)         餐饮服务;快餐厅;快餐厅   \n",
       "4   B0FFKT2R96     []        []                避风塘     餐饮服务;餐饮相关场所;餐饮相关   \n",
       "5   B0FFKSLFAN     []        []           slim tea     餐饮服务;餐饮相关场所;餐饮相关   \n",
       "6   B0FFKTDMOI     []        []              过气轻食屋       餐饮服务;外国餐厅;外国餐厅   \n",
       "7   B0FFKT57XY     []        []               吃个沙拉  餐饮服务;外国餐厅;西餐厅(综合风味)   \n",
       "8   B0FFKT4WNY     []        []               莫凡烧烤   餐饮服务;中餐厅;特色/地方风味餐厅   \n",
       "9   B0FFKT2RSW     []        []         壹品煲仔饭(中大店)         餐饮服务;快餐厅;快餐厅   \n",
       "10  B0FFKSZWZY     []        []                潮食尚         餐饮服务;快餐厅;快餐厅   \n",
       "11  B0FFKPZMKM     []        []       叫了只炸鸡(中山大学店)  餐饮服务;外国餐厅;西餐厅(综合风味)   \n",
       "12  B0FFK9DGL3     []        []               烧烤时代   餐饮服务;中餐厅;特色/地方风味餐厅   \n",
       "13  B0FFK6DIYZ     []        []               天天美食   餐饮服务;中餐厅;特色/地方风味餐厅   \n",
       "14  B0FFK2V2QP     []        []            阿里山幸福便当         餐饮服务;快餐厅;快餐厅   \n",
       "15  B0FFK28XPU     []        []               我家厨房         餐饮服务;快餐厅;快餐厅   \n",
       "16  B0FFLLU813     []        []     怪兽充电(中山大学南方学院)        生活服务;共享设备;充电宝   \n",
       "17  B0FFK6K7MM     []        []           焖有道(中大店)   餐饮服务;中餐厅;特色/地方风味餐厅   \n",
       "18  B0FFK8X6T8     []        []            仰望食集包角布         餐饮服务;糕饼店;糕饼店   \n",
       "19  B0FFHQXIPV     []        []      惠仁轩cafe(图书馆店)         餐饮服务;茶艺馆;茶艺馆   \n",
       "\n",
       "   typecode biz_type                   address              location  \\\n",
       "0    072101       []   温泉镇笃行路20、22、24号中山大学南方学院  113.679287,23.632575   \n",
       "1    050900    diner   温泉镇笃行路20、22、24号中山大学南方学院  113.679287,23.632575   \n",
       "2    050118    diner        从化温泉镇中山大学南方学院博学路6号  113.679287,23.632575   \n",
       "3    050300    diner       温泉镇中山大学南方学院东区第四饭堂二楼  113.679287,23.632575   \n",
       "4    050000    diner      温泉镇中山大学南方学院明辨路2号二、三层  113.679286,23.632574   \n",
       "5    050000    diner      温泉镇中山大学南方学院明辨路2号二、三层  113.679286,23.632574   \n",
       "6    050200    diner  温泉镇中山大学南方学院后门润泰超市一楼05号商铺  113.679286,23.632573   \n",
       "7    050201    diner    温泉镇中山大学南方学院后门润泰超市首层11号  113.679286,23.632573   \n",
       "8    050118    diner  温泉镇中山大学南方学院后门润泰超市一楼05号商铺  113.679286,23.632573   \n",
       "9    050300    diner    温泉镇中山大学南方学院后门润泰超市首层28号  113.679286,23.632573   \n",
       "10   050300    diner        从化温泉镇中山大学南方学院明辩路2号  113.679286,23.632573   \n",
       "11   050201    diner  温泉镇中山大学南方学院后门润泰超市一楼05号商铺  113.679286,23.632573   \n",
       "12   050118    diner             温泉镇中山大学南方学院后门  113.679286,23.632573   \n",
       "13   050118    diner    温泉镇中山大学南方学院后门润泰超市首层11号  113.679286,23.632573   \n",
       "14   050300    diner     温泉镇中山大学南方学院后门润泰超市首层7号  113.679292,23.632574   \n",
       "15   050300    diner    博学路中山大学南方学院后门润泰超市首层23号  113.679289,23.632563   \n",
       "16   072101       []                  温泉大道882号  113.679262,23.632583   \n",
       "17   050118    diner  温泉镇中山大学南方学院后门润泰超市一楼03号商铺  113.679282,23.632538   \n",
       "18   050800    diner       温泉镇中山大学南方学院后门润泰超市首层  113.679168,23.632480   \n",
       "19   050600    diner  温泉镇温泉大道882号中山大学南方学院行政楼1号  113.678800,23.632922   \n",
       "\n",
       "            tel distance biz_ext importance shopid shopinfo poiweight photos  \n",
       "0            []        0      []         []     []        0        []     []  \n",
       "1            []        0      []         []     []        0        []     []  \n",
       "2   18218913303        0      []         []     []        0        []     []  \n",
       "3            []        0      []         []     []        0        []     []  \n",
       "4            []        0      []         []     []        0        []     []  \n",
       "5   18944690066        0      []         []     []        0        []     []  \n",
       "6   13049636920        0      []         []     []        0        []     []  \n",
       "7   13543352415        0      []         []     []        0        []     []  \n",
       "8   13929768267        0      []         []     []        0        []     []  \n",
       "9   13823186863        0      []         []     []        0        []     []  \n",
       "10  13723795489        0      []         []     []        0        []     []  \n",
       "11  15815819311        0      []         []     []        0        []     []  \n",
       "12  13725173585        0      []         []     []        0        []     []  \n",
       "13  13005660635        0      []         []     []        0        []     []  \n",
       "14  15818801644        0      []         []     []        0        []     []  \n",
       "15  13926119100        1      []         []     []        0        []     []  \n",
       "16           []        2      []         []     []        0        []     []  \n",
       "17  18013781037        4      []         []     []        0        []     []  \n",
       "18           []       16      []         []     []        0        []     []  \n",
       "19           []       62      []         []     []        0        []     []  "
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 表格化，可扩展pandas处理\n",
    "df_中大南方_周边POI = pd.json_normalize(中大南方_周边POI['pois'])\n",
    "df_中大南方_周边POI"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# IP定位"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '广东省',\n",
       " 'city': '汕尾市',\n",
       " 'adcode': '441500',\n",
       " 'rectangle': '115.3333783,22.74747119;115.4046714,22.80860443'}"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def ip(ip,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/ip?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'ip':ip,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "ip('223.73.27.146')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 静态地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [],
   "source": [
    "from PIL import Image\n",
    "from io import BytesIO\n",
    "def staticmap(location,zoom,size=None,scale=1,markers=None,labels=None,paths=None,traffic=0,page=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'location':location,\n",
    "        'zoom':zoom,\n",
    "        'size':size,\n",
    "        'scale':scale,\n",
    "        'markers':markers,\n",
    "        'labels':labels,\n",
    "        'paths':paths,\n",
    "        'traffic':traffic,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = Image.open(BytesIO(response.content))\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAADAFBMVEX+/vz8/Pn7+P7++/zd18/c2ND+/vTb6O3b4+kAasn5/Pr++f5jYmDb5ev9+ejw3ML29fNnqM3g7PH7+/zp8PT4+vv9+/vW5u/c1s72+ful5Xbr8vXx5dv6/Pz6+PPk39b2+Pj29PHu8O3r6urHdAnp6ejx9PXe6/De2s/08/Lh7fH5+fjh3NPg29Hb393x9vi2t7T48+zj7PHc2M77+PTb4+Xq5+Hb3dlPndDb4ePc6fDm7/P5+/vb4eGPj5D3+fnf2tDe2c/7+vry8O3z8O3i3tVeYGPf2c+Ympzw7urc2tOdj33x7+zy9/ikpqj5+ffOhiifn6DVmUrz8e/kysjk4NjR4ejv7env8PDH3vT7+vmCg4T7+vix0/vn49v8/P3q8vWRlJbd183s6OP8/PwmJyjw7ulOUFFqa234+vrr8vXp5t/m4tra2tbu8/aJiozw9vddZm3FbwDe2M7u7Obu7Ojh29Vub3Hz9/nlw7/h29Lu6+TZ2tb7/P1eX2LR0tPb5ejb6O/b39zt8/Wur6+SwNnGz9Li6++5vL14sM/j39f8+/u01b3oumb4+Pjb3Nerzt7e6u/oxrjy7+rmwY7Oy8P18+3j7fLa2NDmkgXy8/Hv9ffh7PH0+Pnp7Nj6+fjg3NJis/zp8fTi3tbY5uvo7/Lz8ezr7ev5+fnt6ubb4ODc2tLv9ffb4uLr5+Hz+Pj09vb19PLX4eXg1s75+/t8fX/7/Prh6/Df5uj18/Dd6O7c18/c2dHf6/D7+/rk3tPb4N/P2+D29fLb29Xl7vLb5Obl7O3o8fT2+frl4dno5uLb3tvZ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zbu2Lln46bkSytTZm1MJrTuZ1t+Ra0sbLtiyYPNpo0b7p3cwG8kltS3WFWvpBjswy9v4d9eLgBy7x6P7a6NG/bc2rBjg48xdgTMXlMDQhpbWKMBZHgrgkSJSh+vWnD71NPdlQH5+bPPPpt/8G+X5O//H3/7w6cFBQWfVnz/fdt9IcT4i51Lv//+VsLpI9/u24cd8507931ybOe+fQXfPanEfyhd83rqJ/cTB4T/lujm1D3e69/3rvfByX3fYh6RZHXu+3Y7fCxo8ncxlht8h9LYY5PGfhSDxHpPfLDos3n/fhpWi6uj6tNVu2L9VNZuMCBFZnM4llNv/mbSpH/7N3z6e/9sk2+LTNaJZD2RJtB+u0NpJdetDHohMNURW1mBl3eFYc9NPQ2CRYX4AXnyZ0ly73Ws0reJVHrLkE0xU/EnKT9QAeT7q8MfYMfwlamTf/6ffkMAeVGOx/ffGwOEf5dXIPmLfWB1yo+rTgeXRhifxcYKnM6fJcGsNRcAiW3esBZAtfIhRqPsZjlKQN4a/0H+lwdXTf591rgHmEXee0sJkOvGAGGkSFBKw4voDp5wLqYnDHiIpJSYXfhvMuOgbGtg4RsWkxqyIM1x+ieXVUGAfP+Lop8/O8lm+8Uvnvn4Nw8Kw5TwIDuHTwGQOtnsbEJzx0OZehSfRWKJLF0JIC1hCEVvO+xf/KgmcA2l/38ACykgATr0312u/35aEZFPngYgCtPlCZWDSgiLEIvEek9yeOBZWAKczRwZ8VtVCxGqP+FD46+JhQ8QGb2fC+fWKB5dEdKK65HdpjRqcK1W3haLxFIB5PoQgvX48tp8gCCwzfBqlJ/UBVQmJUDCyqCpWPlwxW5No6W5JxA0OINfRaA+3oIprihS42JASOCdZgMeEkCIC/Qd/avKKi/9v92Lu+NX4/+kAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<PIL.PngImagePlugin.PngImageFile image mode=P size=400x400 at 0x209C8977518>"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staticmap(location=中大南方_location,zoom=15)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 坐标转换"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '116.487585177952,39.991754014757;116.487585177952,39.991653917101'}"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def convert(locations,coordsys,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/coordinate/convert?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'locations':locations,\n",
    "        'coordsys':coordsys,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "convert(\"116.481499,39.990475|116.481499,39.990375\",'gps')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 天气查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'forecasts': [{'city': '汕尾市',\n",
       "   'adcode': '441500',\n",
       "   'province': '广东',\n",
       "   'reporttime': '2020-04-22 17:52:39',\n",
       "   'casts': [{'date': '2020-04-22',\n",
       "     'week': '3',\n",
       "     'dayweather': '阴',\n",
       "     'nightweather': '阴',\n",
       "     'daytemp': '22',\n",
       "     'nighttemp': '19',\n",
       "     'daywind': '东',\n",
       "     'nightwind': '东',\n",
       "     'daypower': '4',\n",
       "     'nightpower': '4'},\n",
       "    {'date': '2020-04-23',\n",
       "     'week': '4',\n",
       "     'dayweather': '阵雨',\n",
       "     'nightweather': '阵雨',\n",
       "     'daytemp': '21',\n",
       "     'nighttemp': '17',\n",
       "     'daywind': '东',\n",
       "     'nightwind': '东',\n",
       "     'daypower': '4',\n",
       "     'nightpower': '4'},\n",
       "    {'date': '2020-04-24',\n",
       "     'week': '5',\n",
       "     'dayweather': '阵雨',\n",
       "     'nightweather': '阴',\n",
       "     'daytemp': '20',\n",
       "     'nighttemp': '17',\n",
       "     'daywind': '无风向',\n",
       "     'nightwind': '无风向',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-04-25',\n",
       "     'week': '6',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '23',\n",
       "     'nighttemp': '18',\n",
       "     'daywind': '无风向',\n",
       "     'nightwind': '无风向',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'}]}]}"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def weatherInfo(city,extensions)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'city':city,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "汕尾天气_预报 = weatherInfo('汕尾','all')#返回预报天气\n",
    "汕尾天气_预报"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>date</th>\n",
       "      <th>week</th>\n",
       "      <th>dayweather</th>\n",
       "      <th>nightweather</th>\n",
       "      <th>daytemp</th>\n",
       "      <th>nighttemp</th>\n",
       "      <th>daywind</th>\n",
       "      <th>nightwind</th>\n",
       "      <th>daypower</th>\n",
       "      <th>nightpower</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2020-04-22</td>\n",
       "      <td>3</td>\n",
       "      <td>阴</td>\n",
       "      <td>阴</td>\n",
       "      <td>22</td>\n",
       "      <td>19</td>\n",
       "      <td>东</td>\n",
       "      <td>东</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2020-04-23</td>\n",
       "      <td>4</td>\n",
       "      <td>阵雨</td>\n",
       "      <td>阵雨</td>\n",
       "      <td>21</td>\n",
       "      <td>17</td>\n",
       "      <td>东</td>\n",
       "      <td>东</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2020-04-24</td>\n",
       "      <td>5</td>\n",
       "      <td>阵雨</td>\n",
       "      <td>阴</td>\n",
       "      <td>20</td>\n",
       "      <td>17</td>\n",
       "      <td>无风向</td>\n",
       "      <td>无风向</td>\n",
       "      <td>≤3</td>\n",
       "      <td>≤3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2020-04-25</td>\n",
       "      <td>6</td>\n",
       "      <td>多云</td>\n",
       "      <td>多云</td>\n",
       "      <td>23</td>\n",
       "      <td>18</td>\n",
       "      <td>无风向</td>\n",
       "      <td>无风向</td>\n",
       "      <td>≤3</td>\n",
       "      <td>≤3</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         date week dayweather nightweather daytemp nighttemp daywind  \\\n",
       "0  2020-04-22    3          阴            阴      22        19       东   \n",
       "1  2020-04-23    4         阵雨           阵雨      21        17       东   \n",
       "2  2020-04-24    5         阵雨            阴      20        17     无风向   \n",
       "3  2020-04-25    6         多云           多云      23        18     无风向   \n",
       "\n",
       "  nightwind daypower nightpower  \n",
       "0         东        4          4  \n",
       "1         东        4          4  \n",
       "2       无风向       ≤3         ≤3  \n",
       "3       无风向       ≤3         ≤3  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_汕尾天气_预报 = pd.json_normalize(汕尾天气_预报[\"forecasts\"][0][\"casts\"])\n",
    "display(df_汕尾天气_预报)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'lives': [{'province': '广东',\n",
       "   'city': '汕尾市',\n",
       "   'adcode': '441500',\n",
       "   'weather': '雨',\n",
       "   'temperature': '18',\n",
       "   'winddirection': '东北',\n",
       "   'windpower': '≤3',\n",
       "   'humidity': '100',\n",
       "   'reporttime': '2020-04-22 17:52:39'}]}"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "汕尾天气_实况 = weatherInfo('汕尾','base')#返回实况天气\n",
    "汕尾天气_实况"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>province</th>\n",
       "      <th>city</th>\n",
       "      <th>adcode</th>\n",
       "      <th>weather</th>\n",
       "      <th>temperature</th>\n",
       "      <th>winddirection</th>\n",
       "      <th>windpower</th>\n",
       "      <th>humidity</th>\n",
       "      <th>reporttime</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>广东</td>\n",
       "      <td>汕尾市</td>\n",
       "      <td>441500</td>\n",
       "      <td>雨</td>\n",
       "      <td>18</td>\n",
       "      <td>东北</td>\n",
       "      <td>≤3</td>\n",
       "      <td>100</td>\n",
       "      <td>2020-04-22 17:52:39</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  province city  adcode weather temperature winddirection windpower humidity  \\\n",
       "0       广东  汕尾市  441500       雨          18            东北        ≤3      100   \n",
       "\n",
       "            reporttime  \n",
       "0  2020-04-22 17:52:39  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_汕尾天气_实况 = pd.json_normalize(汕尾天气_实况['lives'])\n",
    "display(df_汕尾天气_实况)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 输入提示"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': [],\n",
       "   'name': '海底捞',\n",
       "   'district': [],\n",
       "   'adcode': [],\n",
       "   'location': [],\n",
       "   'address': [],\n",
       "   'typecode': [],\n",
       "   'city': []},\n",
       "  {'id': 'B00141VVZW',\n",
       "   'name': '海底捞火锅(北京路店)(暂停营业)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.269638,23.125438',\n",
       "   'address': '中山四路395号广百黄金珠宝大厦5层',\n",
       "   'typecode': '050117',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFLKU90R',\n",
       "   'name': '海底捞火锅(展贸中心店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.258878,23.141207',\n",
       "   'address': '流花路117号流花展贸中心南区3号馆3-A002',\n",
       "   'typecode': '050117',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFG2YCA9',\n",
       "   'name': '海底捞火锅(富力海珠城店)',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.274043,23.095637',\n",
       "   'address': '江南大道中180号富力海珠城B区7层',\n",
       "   'typecode': '050117',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFLMJQTH',\n",
       "   'name': '海底捞火锅',\n",
       "   'district': '广东省广州市荔湾区',\n",
       "   'adcode': '440103',\n",
       "   'location': '113.241695,23.118563',\n",
       "   'address': [],\n",
       "   'typecode': '050117',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFKU8JDF',\n",
       "   'name': '海底捞火锅(恒宝广场店)',\n",
       "   'district': '广东省广州市荔湾区',\n",
       "   'adcode': '440103',\n",
       "   'location': '113.241434,23.116738',\n",
       "   'address': '宝华路133号恒宝广场二楼0014、0015铺',\n",
       "   'typecode': '050117',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFFSSCXE',\n",
       "   'name': '海底捞火锅(体育西路店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.320560,23.139945',\n",
       "   'address': '体育西路191号佳兆业广场F4层401A',\n",
       "   'typecode': '050117',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFKGB4YJ',\n",
       "   'name': '海底捞火锅(中泰广场店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.322800,23.149818',\n",
       "   'address': '林和西路中泰广场6层',\n",
       "   'typecode': '050000',\n",
       "   'city': []},\n",
       "  {'id': 'B00141S09V',\n",
       "   'name': '海底捞火锅(珠影·星光城)',\n",
       "   'district': '广东省广州市海珠区',\n",
       "   'adcode': '440105',\n",
       "   'location': '113.321492,23.094381',\n",
       "   'address': '新港中路354号珠影星光城1层123号、206号',\n",
       "   'typecode': '050117',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFGWHSX0',\n",
       "   'name': '海底捞火锅(颐高数码广场店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.334907,23.132923',\n",
       "   'address': '在广东省广州市天河区天河路490号壬丰大厦颐高数码广场4楼',\n",
       "   'typecode': '050100',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def inputtips(keywords,type=None,location=None,city=None,datatype=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/inputtips?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'keywords':keywords,\n",
    "        'type':type,\n",
    "        'location':location,\n",
    "        'city':city,\n",
    "        'datatype':datatype,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "输入提示 = inputtips(\"海底捞\",city = \"广州\")\n",
    "输入提示"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>name</th>\n",
       "      <th>district</th>\n",
       "      <th>adcode</th>\n",
       "      <th>location</th>\n",
       "      <th>address</th>\n",
       "      <th>typecode</th>\n",
       "      <th>city</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>海底捞</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B00141VVZW</td>\n",
       "      <td>海底捞火锅(北京路店)(暂停营业)</td>\n",
       "      <td>广东省广州市越秀区</td>\n",
       "      <td>440104</td>\n",
       "      <td>113.269638,23.125438</td>\n",
       "      <td>中山四路395号广百黄金珠宝大厦5层</td>\n",
       "      <td>050117</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFLKU90R</td>\n",
       "      <td>海底捞火锅(展贸中心店)</td>\n",
       "      <td>广东省广州市越秀区</td>\n",
       "      <td>440104</td>\n",
       "      <td>113.258878,23.141207</td>\n",
       "      <td>流花路117号流花展贸中心南区3号馆3-A002</td>\n",
       "      <td>050117</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFG2YCA9</td>\n",
       "      <td>海底捞火锅(富力海珠城店)</td>\n",
       "      <td>广东省广州市海珠区</td>\n",
       "      <td>440105</td>\n",
       "      <td>113.274043,23.095637</td>\n",
       "      <td>江南大道中180号富力海珠城B区7层</td>\n",
       "      <td>050117</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B0FFLMJQTH</td>\n",
       "      <td>海底捞火锅</td>\n",
       "      <td>广东省广州市荔湾区</td>\n",
       "      <td>440103</td>\n",
       "      <td>113.241695,23.118563</td>\n",
       "      <td>[]</td>\n",
       "      <td>050117</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFKU8JDF</td>\n",
       "      <td>海底捞火锅(恒宝广场店)</td>\n",
       "      <td>广东省广州市荔湾区</td>\n",
       "      <td>440103</td>\n",
       "      <td>113.241434,23.116738</td>\n",
       "      <td>宝华路133号恒宝广场二楼0014、0015铺</td>\n",
       "      <td>050117</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFFSSCXE</td>\n",
       "      <td>海底捞火锅(体育西路店)</td>\n",
       "      <td>广东省广州市天河区</td>\n",
       "      <td>440106</td>\n",
       "      <td>113.320560,23.139945</td>\n",
       "      <td>体育西路191号佳兆业广场F4层401A</td>\n",
       "      <td>050117</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFKGB4YJ</td>\n",
       "      <td>海底捞火锅(中泰广场店)</td>\n",
       "      <td>广东省广州市天河区</td>\n",
       "      <td>440106</td>\n",
       "      <td>113.322800,23.149818</td>\n",
       "      <td>林和西路中泰广场6层</td>\n",
       "      <td>050000</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B00141S09V</td>\n",
       "      <td>海底捞火锅(珠影·星光城)</td>\n",
       "      <td>广东省广州市海珠区</td>\n",
       "      <td>440105</td>\n",
       "      <td>113.321492,23.094381</td>\n",
       "      <td>新港中路354号珠影星光城1层123号、206号</td>\n",
       "      <td>050117</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFGWHSX0</td>\n",
       "      <td>海底捞火锅(颐高数码广场店)</td>\n",
       "      <td>广东省广州市天河区</td>\n",
       "      <td>440106</td>\n",
       "      <td>113.334907,23.132923</td>\n",
       "      <td>在广东省广州市天河区天河路490号壬丰大厦颐高数码广场4楼</td>\n",
       "      <td>050100</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           id               name   district  adcode              location  \\\n",
       "0          []                海底捞         []      []                    []   \n",
       "1  B00141VVZW  海底捞火锅(北京路店)(暂停营业)  广东省广州市越秀区  440104  113.269638,23.125438   \n",
       "2  B0FFLKU90R       海底捞火锅(展贸中心店)  广东省广州市越秀区  440104  113.258878,23.141207   \n",
       "3  B0FFG2YCA9      海底捞火锅(富力海珠城店)  广东省广州市海珠区  440105  113.274043,23.095637   \n",
       "4  B0FFLMJQTH              海底捞火锅  广东省广州市荔湾区  440103  113.241695,23.118563   \n",
       "5  B0FFKU8JDF       海底捞火锅(恒宝广场店)  广东省广州市荔湾区  440103  113.241434,23.116738   \n",
       "6  B0FFFSSCXE       海底捞火锅(体育西路店)  广东省广州市天河区  440106  113.320560,23.139945   \n",
       "7  B0FFKGB4YJ       海底捞火锅(中泰广场店)  广东省广州市天河区  440106  113.322800,23.149818   \n",
       "8  B00141S09V      海底捞火锅(珠影·星光城)  广东省广州市海珠区  440105  113.321492,23.094381   \n",
       "9  B0FFGWHSX0     海底捞火锅(颐高数码广场店)  广东省广州市天河区  440106  113.334907,23.132923   \n",
       "\n",
       "                         address typecode city  \n",
       "0                             []       []   []  \n",
       "1             中山四路395号广百黄金珠宝大厦5层   050117   []  \n",
       "2       流花路117号流花展贸中心南区3号馆3-A002   050117   []  \n",
       "3             江南大道中180号富力海珠城B区7层   050117   []  \n",
       "4                             []   050117   []  \n",
       "5        宝华路133号恒宝广场二楼0014、0015铺   050117   []  \n",
       "6           体育西路191号佳兆业广场F4层401A   050117   []  \n",
       "7                     林和西路中泰广场6层   050000   []  \n",
       "8       新港中路354号珠影星光城1层123号、206号   050117   []  \n",
       "9  在广东省广州市天河区天河路490号壬丰大厦颐高数码广场4楼   050100   []  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_输入提示 = pd.json_normalize(输入提示['tips'])\n",
    "display(df_输入提示)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 交通态势"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'trafficinfo': {'description': '西华路：双向畅通。',\n",
       "  'evaluation': {'expedite': '100.00%',\n",
       "   'congested': '0.00%',\n",
       "   'blocked': '0.00%',\n",
       "   'unknown': '0.00%',\n",
       "   'status': '1',\n",
       "   'description': '畅通'}}}"
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#  指定线路交通态势\n",
    "def road(name,city,level=None,extensions=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/traffic/status/road?parameters'\n",
    "    params={\n",
    "        'key':key_fang,\n",
    "        'name':name,\n",
    "        'city':city,\n",
    "        'level':level,\n",
    "        'extensions':extensions,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "交通态势 = road( '西华路', '广州')\n",
    "交通态势"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>description</th>\n",
       "      <th>evaluation.expedite</th>\n",
       "      <th>evaluation.congested</th>\n",
       "      <th>evaluation.blocked</th>\n",
       "      <th>evaluation.unknown</th>\n",
       "      <th>evaluation.status</th>\n",
       "      <th>evaluation.description</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>西华路：双向畅通。</td>\n",
       "      <td>100.00%</td>\n",
       "      <td>0.00%</td>\n",
       "      <td>0.00%</td>\n",
       "      <td>0.00%</td>\n",
       "      <td>1</td>\n",
       "      <td>畅通</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  description evaluation.expedite evaluation.congested evaluation.blocked  \\\n",
       "0   西华路：双向畅通。             100.00%                0.00%              0.00%   \n",
       "\n",
       "  evaluation.unknown evaluation.status evaluation.description  \n",
       "0              0.00%                 1                     畅通  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_交通态势 = pd.json_normalize(交通态势['trafficinfo'])\n",
    "display(df_交通态势)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 批量请求接口"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>typecode</th>\n",
       "      <th>adname</th>\n",
       "      <th>id</th>\n",
       "      <th>pname</th>\n",
       "      <th>parent</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>address</th>\n",
       "      <th>cityname</th>\n",
       "      <th>type</th>\n",
       "      <th>shopinfo</th>\n",
       "      <th>name</th>\n",
       "      <th>childtype</th>\n",
       "      <th>biz_ext.rating</th>\n",
       "      <th>photos</th>\n",
       "      <th>biz_ext.seat_ordering</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>080105</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFF4WQPK</td>\n",
       "      <td>广东省</td>\n",
       "      <td>B00140WEMJ</td>\n",
       "      <td>113.291511,23.201070</td>\n",
       "      <td>117</td>\n",
       "      <td>云溪东路与云溪五路交叉口东100米</td>\n",
       "      <td>广州市</td>\n",
       "      <td>体育休闲服务;运动场馆;足球场</td>\n",
       "      <td>0</td>\n",
       "      <td>广东外语外贸大学(北校区)-足球场</td>\n",
       "      <td>309</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>080100</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFF4UFRZ</td>\n",
       "      <td>广东省</td>\n",
       "      <td>B00140WEMJ</td>\n",
       "      <td>113.291510,23.201069</td>\n",
       "      <td>117</td>\n",
       "      <td>广东外语外贸大学校内</td>\n",
       "      <td>广州市</td>\n",
       "      <td>体育休闲服务;运动场馆;运动场所</td>\n",
       "      <td>0</td>\n",
       "      <td>广东外语外贸大学田径场</td>\n",
       "      <td>309</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>080112</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFHK55NE</td>\n",
       "      <td>广东省</td>\n",
       "      <td>B00140WEMJ</td>\n",
       "      <td>113.293368,23.203826</td>\n",
       "      <td>389</td>\n",
       "      <td>白云大道北2号</td>\n",
       "      <td>广州市</td>\n",
       "      <td>体育休闲服务;运动场馆;乒乓球馆</td>\n",
       "      <td>0</td>\n",
       "      <td>广东外语外贸大学(北校区)-乒乓球室</td>\n",
       "      <td>309</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>141201|080500</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFG8PXI1</td>\n",
       "      <td>广东省</td>\n",
       "      <td>B00140WEMJ</td>\n",
       "      <td>113.296635,23.199263</td>\n",
       "      <td>449</td>\n",
       "      <td>白云大道北2号</td>\n",
       "      <td>广州市</td>\n",
       "      <td>科教文化服务;学校;高等院校|体育休闲服务;休闲场所;休闲场所</td>\n",
       "      <td>0</td>\n",
       "      <td>广东外语外贸大学教工活动中心</td>\n",
       "      <td>309</td>\n",
       "      <td>3.5</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>080101</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFGJAVXI</td>\n",
       "      <td>广东省</td>\n",
       "      <td>B00140WEMJ</td>\n",
       "      <td>113.293161,23.204464</td>\n",
       "      <td>454</td>\n",
       "      <td>白云大道北2号</td>\n",
       "      <td>广州市</td>\n",
       "      <td>体育休闲服务;运动场馆;综合体育馆</td>\n",
       "      <td>0</td>\n",
       "      <td>广东外语外贸大学北校区体育馆</td>\n",
       "      <td>309</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>080110</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFHJI70H</td>\n",
       "      <td>广东省</td>\n",
       "      <td>B00140WEMJ</td>\n",
       "      <td>113.295014,23.204705</td>\n",
       "      <td>543</td>\n",
       "      <td>白云大道北2号</td>\n",
       "      <td>广州市</td>\n",
       "      <td>体育休闲服务;运动场馆;游泳馆</td>\n",
       "      <td>0</td>\n",
       "      <td>广东外语外贸大学(北校区)-游泳场</td>\n",
       "      <td>309</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>080000</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFK55YZN</td>\n",
       "      <td>广东省</td>\n",
       "      <td>NaN</td>\n",
       "      <td>113.294557,23.205185</td>\n",
       "      <td>571</td>\n",
       "      <td>NaN</td>\n",
       "      <td>广州市</td>\n",
       "      <td>体育休闲服务;体育休闲服务场所;体育休闲服务场所</td>\n",
       "      <td>0</td>\n",
       "      <td>奥云山体育俱乐部</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>080603</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFHWXLEA</td>\n",
       "      <td>广东省</td>\n",
       "      <td>NaN</td>\n",
       "      <td>113.287411,23.202847</td>\n",
       "      <td>579</td>\n",
       "      <td>白云大道北47号附近</td>\n",
       "      <td>广州市</td>\n",
       "      <td>体育休闲服务;影剧院;剧场</td>\n",
       "      <td>0</td>\n",
       "      <td>顶尖人演艺大厅</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>[{'url': 'http://store.is.autonavi.com/showpic...</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>080000</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFM4VDRG</td>\n",
       "      <td>广东省</td>\n",
       "      <td>NaN</td>\n",
       "      <td>113.295608,23.204909</td>\n",
       "      <td>594</td>\n",
       "      <td>丛云路68号云山会馆5号楼</td>\n",
       "      <td>广州市</td>\n",
       "      <td>体育休闲服务;体育休闲服务场所;体育休闲服务场所</td>\n",
       "      <td>0</td>\n",
       "      <td>今令企业家俱乐部</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>080304</td>\n",
       "      <td>白云区</td>\n",
       "      <td>B0FFFA79RW</td>\n",
       "      <td>广东省</td>\n",
       "      <td>NaN</td>\n",
       "      <td>113.295839,23.204800</td>\n",
       "      <td>597</td>\n",
       "      <td>云山会馆</td>\n",
       "      <td>广州市</td>\n",
       "      <td>体育休闲服务;娱乐场所;酒吧</td>\n",
       "      <td>0</td>\n",
       "      <td>冰玲珑品酒私厨汇</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        typecode adname          id pname      parent              location  \\\n",
       "0         080105    白云区  B0FFF4WQPK   广东省  B00140WEMJ  113.291511,23.201070   \n",
       "1         080100    白云区  B0FFF4UFRZ   广东省  B00140WEMJ  113.291510,23.201069   \n",
       "2         080112    白云区  B0FFHK55NE   广东省  B00140WEMJ  113.293368,23.203826   \n",
       "3  141201|080500    白云区  B0FFG8PXI1   广东省  B00140WEMJ  113.296635,23.199263   \n",
       "4         080101    白云区  B0FFGJAVXI   广东省  B00140WEMJ  113.293161,23.204464   \n",
       "5         080110    白云区  B0FFHJI70H   广东省  B00140WEMJ  113.295014,23.204705   \n",
       "6         080000    白云区  B0FFK55YZN   广东省         NaN  113.294557,23.205185   \n",
       "7         080603    白云区  B0FFHWXLEA   广东省         NaN  113.287411,23.202847   \n",
       "8         080000    白云区  B0FFM4VDRG   广东省         NaN  113.295608,23.204909   \n",
       "9         080304    白云区  B0FFFA79RW   广东省         NaN  113.295839,23.204800   \n",
       "\n",
       "  distance            address cityname                             type  \\\n",
       "0      117  云溪东路与云溪五路交叉口东100米      广州市                  体育休闲服务;运动场馆;足球场   \n",
       "1      117         广东外语外贸大学校内      广州市                 体育休闲服务;运动场馆;运动场所   \n",
       "2      389            白云大道北2号      广州市                 体育休闲服务;运动场馆;乒乓球馆   \n",
       "3      449            白云大道北2号      广州市  科教文化服务;学校;高等院校|体育休闲服务;休闲场所;休闲场所   \n",
       "4      454            白云大道北2号      广州市                体育休闲服务;运动场馆;综合体育馆   \n",
       "5      543            白云大道北2号      广州市                  体育休闲服务;运动场馆;游泳馆   \n",
       "6      571                NaN      广州市         体育休闲服务;体育休闲服务场所;体育休闲服务场所   \n",
       "7      579         白云大道北47号附近      广州市                    体育休闲服务;影剧院;剧场   \n",
       "8      594      丛云路68号云山会馆5号楼      广州市         体育休闲服务;体育休闲服务场所;体育休闲服务场所   \n",
       "9      597               云山会馆      广州市                   体育休闲服务;娱乐场所;酒吧   \n",
       "\n",
       "  shopinfo                name childtype biz_ext.rating  \\\n",
       "0        0   广东外语外贸大学(北校区)-足球场       309            NaN   \n",
       "1        0         广东外语外贸大学田径场       309            NaN   \n",
       "2        0  广东外语外贸大学(北校区)-乒乓球室       309            NaN   \n",
       "3        0      广东外语外贸大学教工活动中心       309            3.5   \n",
       "4        0      广东外语外贸大学北校区体育馆       309            NaN   \n",
       "5        0   广东外语外贸大学(北校区)-游泳场       309            NaN   \n",
       "6        0            奥云山体育俱乐部       NaN            NaN   \n",
       "7        0             顶尖人演艺大厅       NaN            NaN   \n",
       "8        0            今令企业家俱乐部       NaN            NaN   \n",
       "9        0            冰玲珑品酒私厨汇       NaN            NaN   \n",
       "\n",
       "                                              photos biz_ext.seat_ordering  \n",
       "0                                                NaN                   NaN  \n",
       "1                                                NaN                   NaN  \n",
       "2                                                NaN                   NaN  \n",
       "3                                                NaN                   NaN  \n",
       "4                                                NaN                   NaN  \n",
       "5                                                NaN                   NaN  \n",
       "6                                                NaN                   NaN  \n",
       "7  [{'url': 'http://store.is.autonavi.com/showpic...                     0  \n",
       "8                                                NaN                   NaN  \n",
       "9                                                NaN                   NaN  "
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import json\n",
    "def batch():\n",
    "    url = 'https://restapi.amap.com/v3/batch?key=7e23757aedc3e223be3d7f7f6186a07f'\n",
    "    headers = {\n",
    "        \"content-type\":\"application/json\"\n",
    "    }  \n",
    "    body = {\n",
    "      \"ops\": [\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=7e23757aedc3e223be3d7f7f6186a07f&location=113.292429,23.200438&output=json&radius=100000&types=080000\"\n",
    "        },\n",
    "        {\n",
    "            \"url\": \"/v3/place/around?offset=10&page=1&key=7e23757aedc3e223be3d7f7f6186a07f&location=113.679287,23.632575&output=json&radius=100000&types=080000\"\n",
    "        }\n",
    "        ]\n",
    "      }\n",
    "    response = requests.post(url,data = json.dumps(body),headers=headers)\n",
    "    data = response.json()\n",
    "    return data \n",
    "result = batch()\n",
    "df = pd.json_normalize(result[0]['body']['pois'])\n",
    "df"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 地理围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'gid': 'c84307e1-9c8e-40df-95ae-c4aa7b34c9e0',\n",
       "  'id': '0',\n",
       "  'message': '成功',\n",
       "  'status': '0'},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 创建围栏\n",
    "def create(name,center,enable,radius,valid_time,desc,alert_condition,repeat)->dict:\n",
    "    params = {\n",
    "        \"key\":key_fang,\n",
    "    }\n",
    "    body={\n",
    "        \"name\":name,\n",
    "        \"center\":center,\n",
    "        \"enable\":enable,\n",
    "        \"radius\":radius,\n",
    "        \"valid_time\":valid_time,\n",
    "        \"desc\":desc,\n",
    "        \"alert_condition\":alert_condition,\n",
    "        \"repeat\":repeat\n",
    "    }\n",
    "    r = requests.post(\"https://restapi.amap.com/v4/geofence/meta\",params=params,json=body)\n",
    "    data = r.json()\n",
    "    return data\n",
    "create('围栏123','116.101737,25.291056','true','2000','2020-06-20','一个围栏','enter;leave','Mon,Tues,Wed,Thur,Fri,Sat,Sun')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'page_no': 1,\n",
       "  'page_size': 20,\n",
       "  'rs_list': [{'adcode': '0',\n",
       "    'alert_condition': 'enter;leave',\n",
       "    'center': '116.101737,24.291056',\n",
       "    'create_time': '2020-04-22 22:47:41',\n",
       "    'enable': True,\n",
       "    'fixed_date': '',\n",
       "    'gid': 'aa955f7b-a506-40a1-a005-a3d0b4f8113a',\n",
       "    'id': '0',\n",
       "    'key': '1528372f54775d84f2f86b217f948bf3',\n",
       "    'name': '围栏_home',\n",
       "    'points': '',\n",
       "    'radius': 1333.0,\n",
       "    'repeat': 'Mon,Tues,Wed,Thur,Fri,Sat,Sun',\n",
       "    'time': '00:00,23:59',\n",
       "    'valid_time': '2020-06-20'},\n",
       "   {'adcode': '0',\n",
       "    'alert_condition': 'enter;leave',\n",
       "    'center': '118.101737,25.291056',\n",
       "    'create_time': '2020-04-22 22:56:48',\n",
       "    'enable': True,\n",
       "    'fixed_date': '',\n",
       "    'gid': 'f6e0e3a5-8186-4dd3-bc6e-e76219b7b2db',\n",
       "    'id': '0',\n",
       "    'key': '1528372f54775d84f2f86b217f948bf3',\n",
       "    'name': '围栏123',\n",
       "    'points': '',\n",
       "    'radius': 2000.0,\n",
       "    'repeat': 'Mon,Tues,Wed,Thur,Fri,Sat,Sun',\n",
       "    'time': '00:00,23:59',\n",
       "    'valid_time': '2020-06-20'},\n",
       "   {'adcode': '0',\n",
       "    'alert_condition': 'enter;leave',\n",
       "    'center': '116.101737,25.291056',\n",
       "    'create_time': '2020-04-22 23:00:58',\n",
       "    'enable': True,\n",
       "    'fixed_date': '',\n",
       "    'gid': 'c84307e1-9c8e-40df-95ae-c4aa7b34c9e0',\n",
       "    'id': '0',\n",
       "    'key': '1528372f54775d84f2f86b217f948bf3',\n",
       "    'name': '围栏123',\n",
       "    'points': '',\n",
       "    'radius': 2000.0,\n",
       "    'repeat': 'Mon,Tues,Wed,Thur,Fri,Sat,Sun',\n",
       "    'time': '00:00,23:59',\n",
       "    'valid_time': '2020-06-20'}],\n",
       "  'total_record': 3},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 查询围栏\n",
    "def geofence(id,gid)->dict:\n",
    "    params = {\n",
    "        \"key\":key_fang,\n",
    "    }\n",
    "    body={\n",
    "        \"id\":id,\n",
    "        \"gid\":gid\n",
    "    }\n",
    "    r = requests.get(\"https://restapi.amap.com/v4/geofence/meta\",params=params,json=body)\n",
    "    data = r.json()\n",
    "    return data\n",
    "查询围栏 = geofence('0','c84307e1-9c8e-40df-95ae-c4aa7b34c9e0')\n",
    "查询围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>adcode</th>\n",
       "      <th>alert_condition</th>\n",
       "      <th>center</th>\n",
       "      <th>create_time</th>\n",
       "      <th>enable</th>\n",
       "      <th>fixed_date</th>\n",
       "      <th>gid</th>\n",
       "      <th>id</th>\n",
       "      <th>key</th>\n",
       "      <th>name</th>\n",
       "      <th>points</th>\n",
       "      <th>radius</th>\n",
       "      <th>repeat</th>\n",
       "      <th>time</th>\n",
       "      <th>valid_time</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>enter;leave</td>\n",
       "      <td>116.101737,24.291056</td>\n",
       "      <td>2020-04-22 22:47:41</td>\n",
       "      <td>True</td>\n",
       "      <td></td>\n",
       "      <td>aa955f7b-a506-40a1-a005-a3d0b4f8113a</td>\n",
       "      <td>0</td>\n",
       "      <td>1528372f54775d84f2f86b217f948bf3</td>\n",
       "      <td>围栏_home</td>\n",
       "      <td></td>\n",
       "      <td>1333.0</td>\n",
       "      <td>Mon,Tues,Wed,Thur,Fri,Sat,Sun</td>\n",
       "      <td>00:00,23:59</td>\n",
       "      <td>2020-06-20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0</td>\n",
       "      <td>enter;leave</td>\n",
       "      <td>118.101737,25.291056</td>\n",
       "      <td>2020-04-22 22:56:48</td>\n",
       "      <td>True</td>\n",
       "      <td></td>\n",
       "      <td>f6e0e3a5-8186-4dd3-bc6e-e76219b7b2db</td>\n",
       "      <td>0</td>\n",
       "      <td>1528372f54775d84f2f86b217f948bf3</td>\n",
       "      <td>围栏123</td>\n",
       "      <td></td>\n",
       "      <td>2000.0</td>\n",
       "      <td>Mon,Tues,Wed,Thur,Fri,Sat,Sun</td>\n",
       "      <td>00:00,23:59</td>\n",
       "      <td>2020-06-20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0</td>\n",
       "      <td>enter;leave</td>\n",
       "      <td>116.101737,25.291056</td>\n",
       "      <td>2020-04-22 23:00:58</td>\n",
       "      <td>True</td>\n",
       "      <td></td>\n",
       "      <td>c84307e1-9c8e-40df-95ae-c4aa7b34c9e0</td>\n",
       "      <td>0</td>\n",
       "      <td>1528372f54775d84f2f86b217f948bf3</td>\n",
       "      <td>围栏123</td>\n",
       "      <td></td>\n",
       "      <td>2000.0</td>\n",
       "      <td>Mon,Tues,Wed,Thur,Fri,Sat,Sun</td>\n",
       "      <td>00:00,23:59</td>\n",
       "      <td>2020-06-20</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  adcode alert_condition                center          create_time  enable  \\\n",
       "0      0     enter;leave  116.101737,24.291056  2020-04-22 22:47:41    True   \n",
       "1      0     enter;leave  118.101737,25.291056  2020-04-22 22:56:48    True   \n",
       "2      0     enter;leave  116.101737,25.291056  2020-04-22 23:00:58    True   \n",
       "\n",
       "  fixed_date                                   gid id  \\\n",
       "0             aa955f7b-a506-40a1-a005-a3d0b4f8113a  0   \n",
       "1             f6e0e3a5-8186-4dd3-bc6e-e76219b7b2db  0   \n",
       "2             c84307e1-9c8e-40df-95ae-c4aa7b34c9e0  0   \n",
       "\n",
       "                                key     name points  radius  \\\n",
       "0  1528372f54775d84f2f86b217f948bf3  围栏_home         1333.0   \n",
       "1  1528372f54775d84f2f86b217f948bf3    围栏123         2000.0   \n",
       "2  1528372f54775d84f2f86b217f948bf3    围栏123         2000.0   \n",
       "\n",
       "                          repeat         time  valid_time  \n",
       "0  Mon,Tues,Wed,Thur,Fri,Sat,Sun  00:00,23:59  2020-06-20  \n",
       "1  Mon,Tues,Wed,Thur,Fri,Sat,Sun  00:00,23:59  2020-06-20  \n",
       "2  Mon,Tues,Wed,Thur,Fri,Sat,Sun  00:00,23:59  2020-06-20  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_查询围栏 = pd.json_normalize(查询围栏['data']['rs_list'])\n",
    "display(df_查询围栏)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 轨迹纠偏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'distance': 33.0,\n",
       "  'points': [{'x': 116.44942000249563, 'y': 40.014843356125866},\n",
       "   {'x': 116.44945705955585, 'y': 40.01453960973057}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def driving(x=None,y=None,sp=None,ag=None,tm=None)->dict:\n",
    "    parameters = {\n",
    "    \"key\":key_fang,\n",
    "}\n",
    "    body = [{\n",
    "\"x\": 116.449429,\n",
    "\"y\": 40.014844,\n",
    "\"sp\": 4,\n",
    "\"ag\": 110,\n",
    "\"tm\": 1478831753\n",
    "}, {\n",
    "\"x\": 116.449639,\n",
    "\"y\": 40.014776,\n",
    "\"sp\": 3,\n",
    "\"ag\": 110,\n",
    "\"tm\": 23\n",
    "}, {\n",
    "\"x\": 116.449859,\n",
    "\"y\": 40.014716,\n",
    "\"sp\": 3,\n",
    "\"ag\": 111,\n",
    "\"tm\": 33\n",
    "}, {\n",
    "\"x\": 116.450074,\n",
    "\"y\": 40.014658,\n",
    "\"sp\": 3,\n",
    "\"ag\": 110,\n",
    "\"tm\": 31\n",
    "}, {\n",
    "\"x\": 116.450273,\n",
    "\"y\": 40.014598,\n",
    "\"sp\": 3,\n",
    "\"ag\": 111,\n",
    "\"tm\": 20\n",
    "}]\n",
    "    r = requests.post(\"https://restapi.amap.com/v4/grasproad/driving\",params=parameters,json=body)\n",
    "    data = r.json()\n",
    "    return data\n",
    "driving(x=\"116.449639\",y=\"40.014844\",sp=\"4\",ag=\"110\",tm=\"31\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 尝试设计一个简单应用"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 校外人员访问指南\n",
    "- 访问前提前查看从化区天气，避免下车淋雨很尴尬（天气查询API）\n",
    "- 非停车区设置为地理围栏，乱停车警告（地理围栏API）\n",
    "- 不知校内外有什么？POI关键词搜索、周边搜索，吃喝玩乐全都有（搜索POI）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
